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:
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
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:
>
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 <
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:
>
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() {
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');
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
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:
>
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);
});
});
10 matches
Mail list logo