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 post
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:


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...