Dimitri
I tried to do the same, and it seems it can't be done at the moment in v1.0
Safari. Safari's DOM support is currently restricted to DHTML DOM, ie. you
can manipulate the currently loaded DHTML document, but not any other XML
document type. There is no document.implementation.createDocument() support
as in Mozilla, and no XMLHttpRequest object (or equivalent) for loading via
HTTP.
Maybe in v1.1 .....
Phil White
----- Original Message -----
From: "Dimitri Mouffet" <email@hidden>
To: <email@hidden>
Sent: Monday, October 27, 2003 1:55 PM
Subject: [Safari] How to load XML document with javascript?
> Hello,
>
> I would like to build a webpage with javascript and data from a xml
> file. I tried to use load() function but it doesn't work with Safari.
> Console log returned a message like this:
>
> "(event handler):Value undefined (result of expression xmlDoc.load) is
> not object. Cannot be called."
>
> I performed tests with code from Apple Internet Developer
> (<http://developer.apple.com/internet/javascript/tests/import.html>)
> and my own code. It works with Mozilla but not Safari.
>
> Anyone have some tips to force Safari to load XML file thanks to a
> javascript function?
>
> Thanks,
> Dimitri
> _______________________________________________
> web-development mailing list | email@hidden
> Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/web-development
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
web-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/web-development
Do not post admin requests to the list. They will be ignored.