Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have problem with gxp print plugin. I create new sdk project suite-sdk create ~/sdk. Next I do everything from Problems with gxp Print plugin via opengeosuite sdk but there is another problem. But I don't know where. After I click on the print button in print preview modal nothing happens. Here is a screen shot from firebug JPG

Anyone know how to fix that?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Your screenshot shows an OPTIONS request. I assume that your print service is not at the same origin as your application, and your print service does not send CORS headers. You will have to use the GET method to talk to the print service (see http://geoext.org/lib/GeoExt/data/PrintProvider.html for details). This option is not supported in the SDK, but you can add the following as first line of code in your application to change the default:

GeoExt.data.PrintProvider.prototype.method = 'GET';

Note that you will also have to add a script tag to the app resources of your index.html:

<script type="text/javascript" src="http://path.to/geoserver/pdf/info.json?var=printCapabilities"></script>
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.