<div dir="ltr"><div class="gmail_default"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">Hi, </span><br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">
<br style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px">I'm trying to generate a pdf file to print a map using GeoExt with Openlayers and Geoserver but have run into a problem, b</span><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">ecause 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.</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">When I switch to POST method </font><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">and I try to generate the pdf file</span><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif">, I get the following error:</span></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Uncaught SyntaxError: Unexpected number ext-all-debug-w-comments.js: 6815</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br>
</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">The line where the error jumps, corresponds with the following code:</font></div><div class="gmail_default">
<font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> doDecode = function (json) {</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> json return? eval ("(" + json + ")"): "";</font></div><div class="gmail_default">
<font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> }</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div class="gmail_default">
<font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">The source code of the function that prints the map is:</font></div><div class="gmail_default" style="color:rgb(11,83,148)"><span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13px"><br>
</span></div><div class="gmail_default"><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">function showPrintWindow() {</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> var printWindow = new Ext.Window({</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> title: "Print",</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> modal: true,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> border: false,</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> resizable: false,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> width: 360,</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> autoHeight: true,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> items: new GeoExt.ux.PrintPreview({</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> autoHeight: true,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> printMapPanel: {</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> // limit scales to those that can be previewed</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> limitScales: true,</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> // no zooming on the map</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> map: {controls: [</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> new OpenLayers.Control.Navigation({</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> zoomBoxEnabled: false,</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> zoomWheelEnabled: false</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> }),</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> new OpenLayers.Control.PanPanel()</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> ]}</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> },</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> printProvider: {</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> method: "POST",</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> capabilities: printCapabilities,</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> listeners: {</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> "print": function() {printWindow.close();}</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> }</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> },</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> includeLegend: true,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> mapTitle: "Geoportal Almodóvar del Río",</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> sourceMap: mapPanel,</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> legend: legendPanel</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> })</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"> }).show().center();</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">}</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">I'm stuck and out of ideas, can anyone help? <br>
</font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Thanks!</font></div>
<div class="gmail_default"><font color="#000000" face="Verdana, Geneva, Helvetica, Arial, sans-serif">Areiq</font></div></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><p><b><span style="color:#1f497d">Antonio Araque Ibáñez</span></b></p>
<p><span style="color:#1f497d">Director
Técnico</span></p>
<p><span style="color:#1f497d">Entornos
SIG (E-SIG)</span></p>
<p><span style="color:#1f497d"> </span></p>
<p><span style="color:#1f497d">Avda.
Madrid, 43, Bl.1, Bj. A</span></p>
<p><span style="color:#1f497d">23008 Jaén
- España</span></p>
<p><span style="color:#1f497d">Telf.: +34
953 089 523</span></p>
<p><span style="color:#1f497d">Fax: +34 953 089 524</span></p>
<p><span style="color:#1f497d">Web:
<a href="http://e-sig.info" target="_blank">e-sig.info</a></span></p>
<p><span style="color:#1f497d">Email:
<a href="mailto:antonio.araque@e-sig.es" target="_blank">antonio.araque@e-sig.es</a></span></p>
<p><span style="color:#1f497d">Twitter:
@antaraque</span></p>
<p><span style="color:#1f497d"> </span></p>
<p><span style="color:#1f497d"> <img src="http://www.e-sig.info/descargas/Logoe-sigpeque.jpg"></span></p>
<p><span></span></p>
<p><span> </span></p>
<p><span> </span></p>
<p><span>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.</span></p>
<p><span>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, <b>la gestión de carácter comercial y el envío de comunicaciones
comerciales sobre nuestros servicios</b>.</span></p>
<p><span>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 <a href="mailto:e-sig@e-sig.es" target="_blank"><span style="color:#1f497d">e-sig@e-sig.es</span></a>
indicando en la línea de “Asunto” el derecho que desea ejercitar.</span></p>
<p> </p></div></div>