I had Firebug is reporting an error on line 3633 of jquery 1.3.2.
Actually Firebug also added "411 Length Required". Moreover the same
script was fine
when running it ajax call against another server
My situation was a post with no data posted (the url was enough, mvc/
restful style)
$.ajax({
t
Do you have any other ajax options set outside the code you've
provided?
It would be helpful if you try this on a demo page and isolate the
issue. It sounds like something else may be interfering with it.
On Feb 27, 9:46 am, Dan wrote:
> Hi Ricardo,
>
> I've been trying so many different combin
Hi Ricardo,
I've been trying so many different combinations to get this to work
that I forgot the callback function on the version I posted. I've
tried it with the callback and even copy/pasted your code and still no
luck. I'm completely baffled why a simple echo statement isn't getting
returned
Thanks for the quick reply. I tried your code and the alert displays
"[object XMLHttpRequest]". Firebug still doesn't display anything in
the response even though the PHP function is just echoing "checked
out".
On Feb 27, 12:46 pm, MorningZ wrote:
> oops.. forgot to change one line
>
> CallParam
Where are you expecting to collect the response? Are you using a
callback?
function check_out_image(image_id) {
$.post('ajax/checkout_image', {imageid: image_id}, function(resp){
alert(resp);
});
}
On Feb 27, 2:41 pm, Dan wrote:
> I'm using jquery 1.3.2 and trying to send some dat
oops.. forgot to change one line
CallParams.data = { imageid: image_id };
On Feb 27, 1:39 pm, MorningZ wrote:
> instead of $.post, try this instead
>
> var CallParams = {};
> CallParams.type = "POST";
> CallParams.url = "your-page.php";
> CallParams.processData = true;
> CallParams.data = para
instead of $.post, try this instead
var CallParams = {};
CallParams.type = "POST";
CallParams.url = "your-page.php";
CallParams.processData = true;
CallParams.data = params;
CallParams.dataType = "json";
CallParams.success = function(data) {
// "data" is the result
};
CallParams.error = funct
7 matches
Mail list logo