언어 설정

Menu
Sites
Language
Ajax in Tizen

 

Hi

I'm using ajax for requesting information via server like this

 

$.ajax({
 
url : 'https://www.aaa.com/mobile/auth/',
headers: { 'authToken': '12345678', 'SwCode':'123' },
type : 'GET',
dataType : 'xml',
success : function(xmlinfo) {
alert("success : " + xmlinfo );
 
},
error : function(request,error) {
alert("ERROR request:" + request + "error : " + error);
},
complete : function(
xmlinfo, status) {
alert("Complete  xmlinfo: " + xmlinfo + "status : " + status);
}
});

 

 

 

When I run the app in web emulator, Ajax is not working.

I couldn't see anything.

But, When I do this in web simulator, I can get the success response.

 

I'm thinking emulator almost is similar as real mobile.

Cannot I use ajax in Tizen ??

 

Thanks,

Jenny

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

2 댓글
talari praveen kumar
Hi Jenny Did you add your url or * "access" of "policy" tab in config.xml file????
Jenny Blossoms
Right ! Thanks kumar ! :) I solved it :)