Jump to content

Problems with firefox


Arcader
 Share

Recommended Posts

Ok, for some reason the codes I found and are using for my podcast reader don't work on Firefox:

// code for Mozilla, etc.else if (document.implementation && document.implementation.createDocument){xmlDoc= document.implementation.createDocument("","",null)xmlDoc.load(rssfeed);xmlDoc.onload=start()}

Link to comment
Share on other sites

I've been pretty successful at loading XML documents using AJAX (as long as the XML file resides in the same domain as the web page).

var xmlDoc;// create the XMLHttpRequest objectvar xmlhttp = GetXMLHttpObject();// set up and send the requestxmlhttp.onreadystatechange = statechange;xmlhttp.open("GET", "myxmlfile.xml", true);xmlhttp.send("");function statechange(){	if(xmlhttp.readyState == 4)	{		if(xmlhttp.status == 200)		{			xmlDoc = xmlhttp.responseXML;		}	}}

Link to comment
Share on other sites

I've been pretty successful at loading XML documents using AJAX (as long as the XML file resides in the same domain as the web page).
It has to be on the same server as ajax sends requests to the server and you can't send requests to other peoples server.Well I don't think you can.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...