By jason ji
26 Feb 2013 19:44
English
4 Replies
In my application I make a cross origin ajax request, it works well in Tizen's browser, but when I package it as web application, the cross origin request can't work.
Could any expert tell me why?
The following is my code:
var url = "";//this is assigned a domain supports cross domain access according to HTML5 specification.
var client = new XMLHttpRequest();
client.open("GET", url)
client.setRequestHeader("Accept-Language", 'en-us');
client.onreadystatechange = function() { alert("succeed"); }
client.send();
Edited by: Brock Boland on 17 Mar, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.
You must log in to use this service. Log in now?
The tag you entered already exists.
Do you want to report this post as spam?
The post has been reported as spam.
cannot be empty.
Are you sure you want to cancel and return to the list?
The code has been copied to the clipboard.
Enter a title.
All Categories
General Support
Tizen .NET
Web Application Development
Native Application Development
SDK & IDE
--------
--------