WordPress.org

Ready to get started?Download WordPress

Forums

Allow PHP in Posts and Pages
Load XML (1 post)

  1. Maarten.Provo
    Member
    Posted 2 years ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags