[jQuery] Re: Which jQuery method to use in this scenario

2008-04-24 Thread neualex
Never mind :) $("#loading_icon").show(); $.post("process.asp", $('#myForm').serialize(), function(data) { $("#loading_icon").hide(); $("#login").text(data); })

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread neualex
Mike, thanks for your response. When using this $.post method, the function is called once the data comes back from the server page. How can I show a loading icon while the function waits for the data to be sent back? I'd appreciate your support. Thanks, neualex On Apr 23, 10:17 pm, "Mike Alsu

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread neualex
Thank you all for your responses. I am taking Mike's suggestion by using the "serialize" method. ...neualex On Apr 23, 10:17 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later): > > $.post("process.asp", $('#myForm').seri

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Mike Alsup
You can do this easily w/o the form plugin also (with jQuery 1.2.2 and later): $.post("process.asp", $('#myForm').serialize(), function(data) { alert(data); }); or $.ajax({ url:'process.asp', type: 'POST', data:$('#myForm').serialize(), success: function(data) {a

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Josh Nathanson
Yeah there's an easy way -- use the Form plugin by Mike Alsup: http://malsup.com/jquery/form/ -- Josh - Original Message - From: "neualex" <[EMAIL PROTECTED]> To: "jQuery (English)" Sent: Wednesday, April 23, 2008 2:17 PM Subject: [jQuery] Which jQuery method to use in this scenari

[jQuery] Re: Which jQuery method to use in this scenario

2008-04-23 Thread Erik Beeson
The formSerialize function from the form plugin does exactly what you're asking for: http://www.malsup.com/jquery/form/#api The form plugin also has a variety of functions for submitting forms via ajax. Hope it helps. --Erik On 4/23/08, neualex <[EMAIL PROTECTED]> wrote: > > > Guys, I am new