Jump to content

cross browser compatiabilty


Guest libby

Recommended Posts

I am using xml data that is produced by using a asp file so the datasource is an asp file. I have been trying to implement the cross-browser parser as shown here:http://www.w3schools.com/dom/dom_parser.aspbut it seems to only work when the datasource is an xml file, not an asp file. If I pull the data out manually and save it as an xml file the cross-browser parser works, but then it's not automatically updated from the database.Does anyone have any suggestions? (I am new to xml, needless to say)I have parsed the data already in such a way that it's only available to IE users:http://www.trafficconnect.co.za/big_xml.html

Link to comment
Share on other sites

I don't know if this is your problem or how you would fix it with asp, but I had a similar problem with php not outputting xml files right.IIS or whatever interprets .asp files probably uses the mime type 'text/html' by default for your files. This does not work with xml. If there's an asp equivilant of php's header() function, (to send HTTP headers) try sending the header, 'Content-Type: application/xml;' at the begining of your asp file.That's the only thing I can think of. Sorry I never really looked into .asp much so I can't help with how to do that. Hope you can figure it out.Edit: I think you can do something like:

<%Response.ContentType="application/xml"%>

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
×
×
  • Create New...