O-MI-Node/html/example/example.js
/**
 * Loads the XML using AJAX GET and call the send function upon loading
 * @param {string} filepath The path to the XML file
 * @param {Number} serverUrl The URL of the server to send the request to
 */
Loads the XML using AJAX GET and call the send function upon loading
@param {string} filepath The path to the XML file
@param {Number} serverUrl The URL of the server to send the request to
Loads the XML using AJAX GET and call the send function upon loading @param { string } filepath The path to the XML file @param { Number } serverUrl The URL of the server to send the request to
function loadXML(filepath, serverUrl) {
        $.ajax({
            url: filepath, 
            type: 'GET',
            dataType: 'xml',
            timeout: 1000, 
            success: function(xml){
                sendAjaxRequest(xml, serverUrl); 
            }
        });
}
function loadXML ( filepath , serverUrl ) { $ . ajax ( { url : filepath , type : 'GET' , dataType : 'xml' , timeout : 1000 , success : function ( xml ) { sendAjaxRequest ( xml , serverUrl ) ; } } ) ; }
Loads the XML using AJAX GET and call the send function upon loading
 @param {string} filepath The path to the XML file
 @param {Number} serverUrl The URL of the server to send the request to
Loads the XML using AJAX GET and call the send function upon loading @param { string } filepath The path to the XML file @param { Number } serverUrl The URL of the server to send the request to
// path to xml // can be removed /* Upon getting the XML request, send it by calling the sendAjaxRequest function */ /* Note: The function can be called anywhere by giving the xml string and server url as parameters */