Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.