[jQuery] Re: jQuery form plugin questions

2007-07-17 Thread Chris
Mike thank you so much! That works perfectly, I was able to figure out how to use both methods. I went for the one you suggested, but its nice to know how to do both. This was my biggest hurdle to overcome in learning ajax, I most definitely owe you a six pack! Thanks again! -Chris On Jul 16, 5:

[jQuery] Re: jQuery form plugin questions

2007-07-16 Thread Mike Alsup
Chris, You can do one of two things: 1) When the form is submitted return the new comment. In other words, when the new comment is posted, return what you would return from your newcomments.php script. If you do that, your javascript would look something like this: $(document).ready(functio

[jQuery] Re: jQuery form plugin questions

2007-07-16 Thread Chris
Thank you for the help mike, I really appreciate it! Try making a comment on our blog. http://www.iphoneappr.com/index.php?post=55 I am trying to make it so that the comment, once submitted, shows up in the list of comments. Thank you! On Jul 16, 3:22 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: jQuery form plugin questions

2007-07-16 Thread Chris
I will put together a simple version of that page tonight if that will help. Thanks again! On Jul 16, 3:22 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > Chris, > > Can you put together a simplified example page. I feel like I'm only > getting part of the picture. > > Mike > > On 7/16/07, Chris <

[jQuery] Re: jQuery form plugin questions

2007-07-16 Thread Mike Alsup
Chris, Can you put together a simplified example page. I feel like I'm only getting part of the picture. Mike On 7/16/07, Chris <[EMAIL PROTECTED]> wrote: Any ideas? On Jul 15, 12:07 pm, Chris <[EMAIL PROTECTED]> wrote: > Thank you for the reply mike! I added this to my script: >

[jQuery] Re: jQuery form plugin questions

2007-07-16 Thread Chris
Any ideas? On Jul 15, 12:07 pm, Chris <[EMAIL PROTECTED]> wrote: > Thank you for the reply mike! I added this to my script: > $(document).ready(function() { > // bind 'myForm' and provide a simple callback function > $('#myForm').ajaxForm(function() {

[jQuery] Re: jQuery form plugin questions

2007-07-15 Thread Chris
Thank you for the reply mike! I added this to my script: $(document).ready(function() { // bind 'myForm' and provide a simple callback function $('#myForm').ajaxForm(function() { $('#thankyou').show('slow');

[jQuery] Re: jQuery form plugin questions

2007-07-15 Thread Mike Alsup
Sorry, I'm meant the formatted *comment*. When a comment is posted, return something like this from the server (filling in the correct info as appropriate): author name hereComment text here Mike On 7/15/07, Chris <[EMAIL PROTECTED]> wrote: Thank you for the reply mike, Unfortunately I d

[jQuery] Re: jQuery form plugin questions

2007-07-15 Thread Chris
Thank you for the reply mike, Unfortunately I don't understand how I could use this? What is the formatted column? I think i understand that you would be running this code $('#comments h1') after the (data) for the form is complete. On Jul 13, 4:17 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: jQuery form plugin questions

2007-07-13 Thread Mike Alsup
Chris, Why don't you return the formatted column when it is posted. Then you could do something like this: $(document).ready(function() { $('#myForm').ajaxForm(function(data) { $('#thankyou').show('slow'); $('newcomment').hide(); $('#comments h1').after(data); }); });