On Thu, Oct 21, 2010 at 2:13 PM, ilias kanellos
<[email protected]> wrote:
> Hello,
>
> I have the following code that reads a text file:
>
>                         var request = OpenLayers.Request.GET(
>                         {
>                             //The url of a file. I have put it in the
> directory the page is running
>                             url: GMLPathURL,
>                             //Request must be synchronous
>                             //so that all text is read first
>                             async: false
>                         });
>
>                         //Response is assigned to variable text
>                         var text = request.responseText;
>
> If i call alert(text); i can see the contents of the file in firefox. When i
> use internet explorer, i get an error.
> Does OpenLayers.Request.GET not work on internet explorer? Is there
> something else I can do for the same functionality?

It should work, but maybe the synchronous version of it doesn't, I
don't know. Anyway, try not to use synchronous Ajax calls.


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected]
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to