I had to change the "Get" function in "mnet.html5.js" to the following in order to stop "undefined" from being returned from the function:
MNet_Http.prototype.Get = function( url, timeoutConnection, timeoutSocket )
{
try
{
var client = new XMLHttpRequest();
client.open( "GET", url, false );
client.send( null );
_httpResponse = client.responseText;
return _httpResponse;
}
catch( e )
{
_httpResponse = ""; // <-- here's the new code
return _httpResponse; // <-- easier to have this?
}
}
Fixes my problem, but don't know if it's the optimal solution.
|