[OpenLayers-Users] OpenLayers.Request POST and IE 6/7 issues

Ian iansgis at gmail.com
Mon Oct 27 19:23:41 EDT 2008


I am using the print map code from the wiki and opening the printed image in
a new browser window (for testing I am just opening a Blackle page):

new OpenLayers.Request.issue({method:'POST', url:printURL,
params:{width:size.w, height:size.h, tiles:tiles_json}, callback:
function(request) {alert(request.status); alert(request.responseText);
window.open('http://www.blackle.com','_blank');}});

All works as expected in Firefox. Internet Explorer 6 throws an "Unknown
name" error at a line outside of my js file, never alerts the status code or
responseText, and never opens a new window. Internet Explorer 7 returns
status code 122, empty responseText, and then opens a new window, which
according to http://www.codebelay.com/blog/?p=194 occurs because IE7 is
limiting the size of GET strings. The solution is to do a POST, which is
what I'm doing...

Has anyone else seen this behavior and found a solution?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081027/dadafee6/attachment.html


More information about the Users mailing list