[jQuery] Re: POST data not being sent

2009-07-29 Thread Brett Ritter
On Wed, Jul 29, 2009 at 1:48 PM, shaf wrote: > Ok guys, thats for the advice and replies. > Cesar, if thats how you construct a GET string how would I construct a > POST string ? You don't need a single string. $.ajax({ type: "POST", async: false, url: _HOMEDIR+"send.php", data: { aParameter:

[jQuery] Re: POST data not being sent

2009-07-29 Thread Cesar Sanz
s Regards - Original Message - From: "shaf" To: "jQuery (English)" Sent: Wednesday, July 29, 2009 11:48 AM Subject: [jQuery] Re: POST data not being sent Ok guys, thats for the advice and replies. Cesar, if thats how you construct a GET string how would I cons

[jQuery] Re: POST data not being sent

2009-07-29 Thread alyanm
Hi, I personally prefer to use $.getJSON for this sort of thing, seems to do a better job with the JSON parsing and all that: $.getJSON(_HOMEDIR+"send?"+str, ... However, I'm wondering if "send" is actually the name of the file you want to invoke? Perhaps you left the .php off in your url stri

[jQuery] Re: POST data not being sent

2009-07-29 Thread shaf
span:last").text("Sending..").show(); > > }, > ----- Original Message ----- > From: "Brett Ritter" > To: > Sent: Wednesday, July 29, 2009 10:20 AM > Subject: [jQuery] Re: POST data not being sent > > > On Wed, Jul 29, 2009 at 12:16 PM,

[jQuery] Re: POST data not being sent

2009-07-29 Thread Cesar Sanz
str, dataType: "json", beforeSend: function() { $("span:last").text("Sending..").show(); }, - Original Message - From: "Brett Ritter" To: Sent: Wednesday, July 29, 2009 10:20 AM Subject: [jQuery] Re: POST data not being sent On Wed, Jul 29, 2009 at

[jQuery] Re: POST data not being sent

2009-07-29 Thread Brett Ritter
On Wed, Jul 29, 2009 at 12:16 PM, Liam Potter wrote: > also, don't delete the quoted > posts, means everyone not using a web based group reader can follow the > conversation. However feel free to TRIM lengthy posts to the relevant parts. Even non-web-based group readers support threading or sorti

[jQuery] Re: POST data not being sent

2009-07-29 Thread Liam Potter
tell us what happens when you submit the form, also, don't delete the quoted posts, means everyone not using a web based group reader can follow the conversation. shaf wrote: Thanks for the reply but that doesnt really answer my question.

[jQuery] Re: POST data not being sent

2009-07-29 Thread shaf
Thanks for the reply but that doesnt really answer my question.

[jQuery] Re: POST data not being sent

2009-07-28 Thread Donny Kurnia
shaf wrote: Hi Guys I am trying to make an ajax POST request but its not working. Code below: var _HOMEDIR = "http://localhost/personal/index.php/home/";; $(document).ready(function() { $("form").submit(function() { var str = $("form").serialize(); $.aj