Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spry and Permission denied to call method XMLHttpRequest.open

Guest
Jul 17, 2007 Jul 17, 2007
hi all,

I'm using Spry to call an RSS feed and display on a webpage. I'm running this locally on my computer for testing measures and it works fine in IE but i'm getting a message saying "Permission denied to call method XMLHttpRequest.open" when using FF.

I googled around a bit and found that it has to do something with FF's cross domain security, but nothing much more than that. I was just wondering if anyone would be able to point me to a good resource that explains the issue more and how to fix it, keeping it in mind that i want to fix it using Dreamweaver's Spry options.
TOPICS
Server side applications
591
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 17, 2007 Jul 17, 2007
5h4k42u1u wrote:
> I googled around a bit and found that it has to do something with FF's cross
> domain security, but nothing much more than that. I was just wondering if
> anyone would be able to point me to a good resource that explains the issue
> more and how to fix it, keeping it in mind that i want to fix it using
> Dreamweaver's Spry options.

It's not just Firefox. The security aspect applies to all browsers. The
XML source must be located on the same domain as the web page.

You cannot get round this using Spry's options. The only way is to use a
server-side solution, such as PHP to retrieve the remote XML source, and
act as a proxy on your local domain.

--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Jul 23, 2007 Jul 23, 2007
thx for the quick reply, but i'm just a little confused about few things. Like if i'd use the spry tables with an RSS feed, it'll work with IE but not with FF, but then when i try it with a local XML file, it'll work with FF but not IE? In fact, why does it have trouble at all with the local file, there should be no cross domains to worry about, right?

Sry, like i said i'm a little confused by it all
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 23, 2007 Jul 23, 2007
LATEST
5h4k42u1u wrote:
> if i'd use the spry tables with an RSS feed, it'll work with IE but not with
> FF, but then when i try it with a local XML file, it'll work with FF but not
> IE? In fact, why does it have trouble at all with the local file, there should
> be no cross domains to worry about, right?

You're right that there should be no problem with a local file, but
without seeing the XML file and your code, it's impossible to say what's
causing the problem. I think your best bet is to post a more detailed
question in the Spry forum.

http://www.adobe.com/go/labs_spry_pr1_forum

--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines