[OpenLayers-Users] loadURL returns a pdf
Alexandre Dube
adube at mapgears.com
Fri Feb 6 09:07:02 EST 2009
Hi Bart,
Do you mind showing me a snippet of what you did ?
Many thanks,
Alexandre
bartvde at osgis.nl wrote:
> I did not find a way to do this with AJAX. So if you find one, I'd be
> interested :-) but my search back then indicated this is not possible.
>
> So I ended up doing the following:
>
> 1) my script sends the url to the pdf
> 2) I set the url as the action of a form and submit the form
> 3) the download dialog starts
>
> I also had to have a static form in my HTML page instead of inserting it
> with javascript, since otherwise IE would end up opening a new window.
>
> Best regards,
> Bart
>
>
>> Dear users,
>>
>> Still looking for a way to achieve this. Does anyone have a hint ?
>>
>> Alexandre
>>
>> Alexandre Dube wrote:
>>
>>> Hi list,
>>>
>>> Can I load a script that returns a pdf using loadURL() ? It currently
>>> returns "Unhandled request return OK" but if I copy the URL in a new tab
>>> I get my pdf correctly. Any idea what may be wrong ?
>>>
>>>
>>>
>> --
>> Alexandre Dubé
>> Mapgears
>> www.mapgears.com
>>
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>
>
>
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list