Importing XML in HTML with javascript -


i trying import xml-file html document javascript.

it works fine firefox, doesn't work ie-10 , chrome.

my script:

if (window.xmlhttprequest)   {// code ie7+, firefox, chrome, opera, safari   xmlhttp=new xmlhttprequest();   } else   {// code ie6, ie5   xmlhttp=new activexobject("microsoft.xmlhttp");   } xmlhttp.open("get","xml_input.xml",false); xmlhttp.send(); xmldoc=xmlhttp.responsexml; 

i think changed xmlhttprequest again can't find it's replacement anywhere. i'm hoping on site can me.

are using server of kind? if you're testing off of local address, e.g. file://whatever/your/thing/is won't able make http requests default unless you're in firefox or safari.

if using server, errors in console? can see request being attempted in network tab?


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

Admob integration with pygame in android -

.htaccess: Transfer name to index.php if not directory public -