Read-only archive of the All About Symbian forum (2001–2013) · About this archive

A question about WRT and Kern-Exec 3

0 replies · 6,612 views · Started 13 January 2011

Hi everyone,

Let me set the scene. I have a project I am developing for WRT 1.1, this widget needs to be able to call a webservice with some data and recieve a response.

Currently my code will run in a browser, use jQuery (and a jsonp plugin) to make a cross-domain call to a web service. Then print out the response.

However when running on the emulator available with the SDK, the application shuts down with WidgetUI Panic KERN-EXEC 3 after recieving the response from the server ( This is visible in the diagnostics screen and seen on the screen shortly before crashing)

After a bit of research I found that some people were having problems with XmlHttpRequests responses not being formatted properly and throwing this error.

However I have tried some of the proposed solutions and they seem not to be working.

Here is my code (edited for clarity)

function retrieveData(obj){
var url = "http://webservice";
var datavar = {returnformat : 'plain', method: "retrieveFullData", userLat: obj.lat , userLng: obj.lng };

$("#info"😉.append("Calling Web Service...<br/>"😉;
$.ajax({
url: url,
data: datavar,
dataType: 'jsonp',
type: 'GET',
success: function (data) {
try {
PRINT THE DATA!
}
catch(e){

}
}
});
}

Any help would be appriciated.

Thanks