Hi, I'm trying to generate a pdf file to print a map using GeoExt with Openlayers and Geoserver but have run into a problem, because I have to change the method of sending information (I change GET to POST) because I have a lot of information in the URL and GET method is not enough.
When I switch to POST method and I try to generate the pdf file, I get the following error: Uncaught SyntaxError: Unexpected number ext-all-debug-w-comments.js: 6815 The line where the error jumps, corresponds with the following code: doDecode = function (json) { json return? eval ("(" + json + ")"): ""; } The source code of the function that prints the map is: function showPrintWindow() { var printWindow = new Ext.Window({ title: "Print", modal: true, border: false, resizable: false, width: 360, autoHeight: true, items: new GeoExt.ux.PrintPreview({ autoHeight: true, printMapPanel: { // limit scales to those that can be previewed limitScales: true, // no zooming on the map map: {controls: [ new OpenLayers.Control.Navigation({ zoomBoxEnabled: false, zoomWheelEnabled: false }), new OpenLayers.Control.PanPanel() ]} }, printProvider: { method: "POST", capabilities: printCapabilities, listeners: { "print": function() {printWindow.close();} } }, includeLegend: true, mapTitle: "Geoportal Almodóvar del Río", sourceMap: mapPanel, legend: legendPanel }) }).show().center(); } I'm stuck and out of ideas, can anyone help? Thanks! Areiq -- *Antonio Araque Ibáñez* Director Técnico Entornos SIG (E-SIG) Avda. Madrid, 43, Bl.1, Bj. A 23008 Jaén - España Telf.: +34 953 089 523 Fax: +34 953 089 524 Web: e-sig.info Email: antonio.ara...@e-sig.es Twitter: @antaraque Este mensaje y sus archivos adjuntos van dirigidos exclusivamente a su destinatario, pudiendo contener información confidencial sometida a secreto profesional. No está permitida su reproducción o distribución sin la autorización expresa de ENTORNOS SIG S.L. Si usted no es el destinatario final por favor elimínelo e infórmenos por esta vía. De acuerdo con la LOPD, le informamos que sus datos personales y dirección de correo electrónico forman parte de un fichero, cuyo responsable es ENTORNOS SIG S.L., siendo la finalidad del fichero, *la gestión de carácter comercial y el envío de comunicaciones comerciales sobre nuestros servicios* . Si lo desea, podrá usted ejercitar los derechos de acceso, rectificación, cancelación y oposición de sus datos en Avda. de Madrid, Bloque 1, Bajo A, 23008 (Jaén), o bien, enviando un mensaje a la dirección de correo electrónico e-...@e-sig.es indicando en la línea de “Asunto” el derecho que desea ejercitar.
_______________________________________________ Users mailing list Users@geoext.org http://www.geoext.org/cgi-bin/mailman/listinfo/users