[Commits] r1609 - sandbox/ahocevar/playground/ux/Printing/examples

commits at geoext.org commits at geoext.org
Thu Dec 24 19:46:53 CET 2009


Author: ahocevar
Date: 2009-12-24 19:46:52 +0100 (Thu, 24 Dec 2009)
New Revision: 1609

Modified:
   sandbox/ahocevar/playground/ux/Printing/examples/Printing.html
   sandbox/ahocevar/playground/ux/Printing/examples/Printing.js
Log:
reverted accidently committed example changes - again.

Modified: sandbox/ahocevar/playground/ux/Printing/examples/Printing.html
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/examples/Printing.html	2009-12-24 18:44:23 UTC (rev 1608)
+++ sandbox/ahocevar/playground/ux/Printing/examples/Printing.html	2009-12-24 18:46:52 UTC (rev 1609)
@@ -18,8 +18,8 @@
         make them available in the printCapabilities variable.
         The script tag below can be removed when configuring the printProvider
         with url instead of capabilities
+        -->
         <script type="text/javascript" src="http://demo.mapfish.org/mapfishsample/1.2/print/info.json?var=printCapabilities"></script>
-        -->
         
     </head>
     <body>

Modified: sandbox/ahocevar/playground/ux/Printing/examples/Printing.js
===================================================================
--- sandbox/ahocevar/playground/ux/Printing/examples/Printing.js	2009-12-24 18:44:23 UTC (rev 1608)
+++ sandbox/ahocevar/playground/ux/Printing/examples/Printing.js	2009-12-24 18:46:52 UTC (rev 1609)
@@ -5,13 +5,13 @@
     printProvider = new GeoExt.ux.data.PrintProvider({
         // using get for remote service access without same origin restriction.
         // For asynchronous requests, we would set method to "POST".
-        //method: "GET",
-        method: "POST",
+        method: "GET",
+        //method: "POST",
         
         // capabilities from script tag in Printing.html. For asynchonous
         // loading, we would configure url instead of capabilities.
-        //capabilities: printCapabilities
-        url: "/geoserver/pdf/"
+        capabilities: printCapabilities
+        //url: "/geoserver/pdf/"
     });
     
     var mapPanel = new GeoExt.MapPanel({
@@ -90,14 +90,13 @@
     
     /* add the print form to its container and make sure that the print page
      * fits the max extent
+     */
     formCt.add(printForm);
     formCt.doLayout();
     printForm.pages[0].fitPage(mapPanel.map);
-     */
 
     /* use this code block instead of the above one if you configured the
      * printProvider with url instead of capabilities
-     */
     var myMask = new Ext.LoadMask(formCt.body, {msg:"Loading data..."});
     myMask.show();
     printProvider.on("loadcapabilities", function() {
@@ -106,5 +105,6 @@
         formCt.doLayout();
         printForm.pages[0].fitPage(mapPanel.map);
     });
+     */
     
 });



More information about the Commits mailing list