All About Symbian - Nokia (S60) and Sony Ericsson (UIQ) smartphones unwrapped

  #1  
Old 13-01-2011, 05:19 PM
nicholast nicholast is offline
Registered User
 
Join Date: Jan 2011
Posts: 1
nicholast is on a distinguished road
Question A question about WRT and Kern-Exec 3

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)

Code:
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
Ads
 

Bookmarks

Tags
developement, kernexec, question, symbian applications, wrt

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT. The time now is 09:23 PM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
Copyright Notes || Contact Us || Privacy Policy