Sign In/My Account | View Cart  
advertisement

Article:
 Very Dynamic Web Interfaces
Subject: iPhone App script problem, please help!
Date: 2010-07-05 09:17:58
From: iPhoneGuy


I'm creating a dashcode iPhone app. The app works prefectly when I use the iPhone simulator, but when i put it on the web server, there is never a response from XMLHttpRequests. See my coding:


function get(feedURL, handler) {
var initHandler = function() { handler(xmlRequest); };
var xmlRequest = new XMLHttpRequest();
xmlRequest.onload = initHandler;
xmlRequest.open("GET", feedURL);
var credentials = encodeBase64(_login.username + ':' + _login.password);
xmlRequest.setRequestHeader("Authorization", "Basic " + credentials);
xmlRequest.send();
}


I attache the onreadystatechange handler and the request goes to state 4. The request is also present in the logs. I can't seem to make this work.


Thanks!


iPhone Guy (http://www.iphonebumpers.org)


Previous Message Previous Message   Next Message Next Message

Sponsored By: