Hi,
What is your webserver saying when the client is making the request?
Do you get at GET call or an OPTIONS call?
It it is the latter you are spot on the money about a XSS issue.
You can quite easily solv this problem by issuing a JSONP request in
stead. Using jQuery 1.3.2+
function loadQuestions(chapter) {
if(!offLine) {
var url = '
http://some.domain.com/some/page/';
$.ajax({
dataType: 'jsonp',
data: 'chapter='+chapter,
jsonp: 'jsonp_callback',
timeout: 5000,
url: url,
success: loadQuestionsCallback,
error: connectionError,
});
}
else {
connectionError();
}
}
function loadQuestionsCallback(data) {
var currentQuestions = eval(data);
currentQuestion = 0;
printQuestion(currentQuestion, currentQuestions);
}
On May 16, 11:54 pm, Avinash <
kazaavin...@gmail.com> wrote:
> Hello Giacomo,
>
> I am sure this is a cross-domain issue because when I download the same xml
> and saved it in www folder and changed the url ="note.xml" instead of url =
> "
http://www.w3schools.com/xml/note.xml"; it works, the info div loads the
> xml fine in that scenario.
>
> Also, I am debugging the code using chrome debug tools and firebug. I do not
> see anything coming back into either responseText or responseXML they are
> both empty in the onresult method when status==4.
>
> Thank you for your time.
> Avinash
>
> > >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>
> >
phonegap+u...@googlegroups.com<phonegap%2Bunsubscribe@googlegroups.c om>