The gadgets.io.makeRequest(url, populateWeatherinfo, params) works well when the city name doesnt have a space in it. However for eg. i have the city san jose and try to call the weather API(to get the XML response) using the gadgets.io.makeRequest(url, populateWeatherinfo, params) it's throwing an unusual pop-up saying that 'several java machines running the same process caused an error'.
I googled this and there were many explanations, but i donot understand how this can come up here. Moreover if i call the weather API with cities not having space in bertwwen them, it works perfectly.
I debugged thee JS and found that this pop-up comes up in the js file dynamic-height.js right after the line: xhr.open(method,proxyUrl,true);
I'm copying the entire function here:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
function makeXhrRequest(realUrl,proxyUrl,callback,paramData,method,params,processResponseFunction,opt_contentType){var xhr=makeXhr();
xhr.open(method,proxyUrl,true);
if(callback){xhr.onreadystatechange=gadgets.util.makeClosure(null,processResponseFunction,realUrl,callback,params,xhr)
}if(paramData!=null){xhr.setRequestHeader("Content-Type",opt_contentType||"application/x-www-form-urlencoded");
xhr.send(paramData)
}else{xhr.send(null)
}}
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
If you use firebug the exact line number is 321.
Is this a bug or am i missing something here??
Thanks,
Nitin