On Thu, May 07, 2009 at 08:28:31PM +0800, Kwong Hu Kiu wrote: This question is more appropriate for the users list. Please do *not* crosspost to both lists.
> Hi, > > I am using OpenLayers.Request.GET to request a zip archive that I have > generated on the server side. > > OpenLayers.Request.GET is working well. I can receive the request parameters > on the server-side. > > These parameters are used by my wms service to return a zip archive with > bitmap data zipped inside. > > But for some reasons when I send the zip file from the server to browser, > It's not opening a download dialog like I expected that let users to download > the zip file. > > Instead, nothing is happening on the browser side(no javascript error) but i > know the bitmap data and zip archive is being created and passed onto the > browser through debugging. > > Strangely, > > If I request from the browser by typing the url, it works. > eg. http://localhost/wms.aspx?REQUEST=downloadZiparchive. > > I am wondering if this is a bug or I am not using it correctly ? Expecting that an XMLHttpRequest will trigger a file download is your mistake. If you want users browsers to download something, then send them to that ocation -- either by giving them a link to click, or by setting document.location. > Need to solve this asap. > > Thanks. > > > > > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev -- Christopher Schmidt MetaCarta _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
