IPhone App ajax request Problem
Hello I am using cross domain ajax plugin to send request to server using IPHONE.
But when i complie the code with xcode it is behaving strange.
Some time it send the request to server. some time it doesn't send reuest.
Some time got response from req开发者_StackOverflow中文版uest and some time i am not able to get reponse
Pls. Help
If there is other way to send data to server using javascript then pls. tell me
Thanks
If this is a native app, you could use NSURLConnection. Read up on that here: URL Loading System Programming Guide If it's a web app, JavaScript is the best way to transmit data bi-direcionally asynchronously. If that doesn't matter to you, you can always use pure PHP and refresh the page each time, although that may not be an optimal user experience.
精彩评论