Support » Plugin: Allow PHP in Posts and Pages » [Plugin: Allow PHP in Posts and Pages] Load XML

  • Maarten.Provo

    (@maartenprovo)


    I’m trying to load an XML-file so I can read variables from it but the scripts seems to stop executing when I get to this step. The code works outside of wordpress though.

    I believe it stops at xhttp.open(“GET” …

    // create XML request
    	if (window.XMLHttpRequest) {
    		xhttp = new XMLHttpRequest();
    	} else {
    		// support for IE 5/6
    		xhttp = new ActiveXObject("Microsoft.XMLHTTP");
    	} 
    
    	// load XML file
    	xhttp.open("GET", "http://www.maartenprovo.be/projects/form/pricing.xml", false);
    	xhttp.send(null);
    	xmlDoc = xhttp.responseXML;

    http://wordpress.org/extend/plugins/allow-php-in-posts-and-pages/

  • The topic ‘[Plugin: Allow PHP in Posts and Pages] Load XML’ is closed to new replies.