Poor skyride. So young and already astray. LuckyLuke does not use a single line of PHP, just javascript.

Anyway, the reason ST8’s example worked and luckyluke’s didn’t is a bit hard to figure if you don’t know about it. (I suppose ST8 forgot as well) It’s javascript’s “same origin policy” http://en.wikipedia.org/wiki/Same_origin_policy

It basically means: you can’t load pages from other websites with javascript for security reasons. ST8’s example worked, just because he uploaded the test to etf2l.or, which is the same domain as the XML feed is on.

So, you need to fetch the XML file with PHP, and then parse it with PHP or javascript. If you want to do it the same way ST8 did (with jQuery javascript), this guy wrote an article on how to bypass the same origin policy using PHP : http://www.sitegrind.nl/jquery/jquery-load-function-get-content-from-other-websites/ That should get you started.


Last edited by DeNeusbeer,