Hi, I am trying to develop a RSS reader using Ajax.
I use the following Get statement.
AjaxObject.open ("GET",URL,true )
where URL is the location of my feed.
Now when I give URL as a file in my localhost directory, it works fine in both IE and Firefox.
But when give URL as a remote feed,it doesnt work in Firefox. It gives me an 'undefined' error.
I read somewhere that it could be because Firefox blocks cross-domain operations so I included the folowing statement in my Js file
try
{
netscape.securi ty.PrivilegeMan ager.enablePriv ilege("Universa lBrowserRead");
}
catch(e)
{
alert("Permissi on UniversalBrowse rRead denied.");
}
But it still goes into the catch mode...
Any idea on how to solve this problem?
Help would be greatly appreciated.
Thanks
I use the following Get statement.
AjaxObject.open ("GET",URL,true )
where URL is the location of my feed.
Now when I give URL as a file in my localhost directory, it works fine in both IE and Firefox.
But when give URL as a remote feed,it doesnt work in Firefox. It gives me an 'undefined' error.
I read somewhere that it could be because Firefox blocks cross-domain operations so I included the folowing statement in my Js file
try
{
netscape.securi ty.PrivilegeMan ager.enablePriv ilege("Universa lBrowserRead");
}
catch(e)
{
alert("Permissi on UniversalBrowse rRead denied.");
}
But it still goes into the catch mode...
Any idea on how to solve this problem?
Help would be greatly appreciated.
Thanks
Comment