p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Javascript (http://p2p.wrox.com/forumdisplay.php?f=85)
-   -   XMLHttpRequest.open (http://p2p.wrox.com/showthread.php?t=60957)

smys123 August 8th, 2007 03:23 PM

This might have been answered already...

I am using a script to call an RSS feed from a website...and displaying them to an html page. This works fine in IE however in FireFox I get the following error

Error: uncaught exception: Permission denied to call method XMLHttpRequest.open

This prevents cross domain scripting....This I know...

Is there a work around or a solution to get this page to work in FF?


joefawcett August 9th, 2007 02:44 AM

IE also disallows cross domain scripting so this shouldn't be the problem. Are the two domains different? Are you passing an argument to the send method? Firefox won't accept passing no value.


Joe (Microsoft MVP - XML)

smys123 August 9th, 2007 08:48 AM

var url = "http://www.weather.gov/data/current_obs/KGTR.xml";
var xml = new JKL.ParseXML(url);

If you would like to see the js file let me know...or you can look at the page itself
and view the source

Thanks for the help

chroniclemaster1 August 20th, 2007 01:22 PM

I get a blank page in both FF and IE7 (don't have 6 here at work). This is one of the nasty things about AJAX, when it fails it fails badly. Hope this helps you figure out the problem.


Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe

When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper

Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.

joefawcett August 21st, 2007 02:18 AM

As I said you can't load XML from a different domain client-side. Your feed is from a different domain to your actual site. You need to use a server-side proxy.


Joe (Microsoft MVP - XML)

All times are GMT -4. The time now is 03:59 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.