Hi there,

my name is Christoph and I'm currently working on the open source 
software project 'Mapbender' (www.mapbender.org), a web mapping client. 
I'm trying to add some basic AJAX functions to the software. Currently 
I'm experimenting with JQuery.

I'm experiencing difficulties with JQuery. Maybe it's just a beginner's 
fault. When I try to send a request via

     $.post(url, param, callback);

JQuery returns no data to my callback function

     function(xml,status){alert(xml);alert(status);}

and status is 'error'.

'url' is a link to a php-file on my webserver that just contains

     echo "Test";

and param is something like

     {name1:value1,name2:value2}

I would expect to see "Test" being alerted, but instead I see a blank 
alert. Do I need to send special headers in my file?

I dug a little deeper, and found the function 'httpSuccess'; I alerted 
the exception that is caught there and it says

[Exception... "Component returned failure code: 0x80040111 
(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.status]"  nsresult: 
"0x80040111 (NS_ERROR_NOT_AVAILABLE)"  location: "JS frame :: 
http://xxxxxxxxxxxx/jquery.js :: anonymous :: line 5952"  data: no]

can anyone make head or tails out of this? I'm kind of lost.

Thanks in advance,

Christoph




_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to