[jQuery] AJAX return value

2009-06-03 Thread Dave Roberts
Hello, I have a page which shows items in a list. I want to call jQuery.ajax and in the return have either: A fail response with a failure string or A success response, a success string, and a bit of HTML to replace the old item on my page. What's the best way to send both a response string and

[jQuery] Re: AJAX return value

2009-06-03 Thread Dave Roberts
){     $('#divToUpdate').html(html.substr(1));   }  else{   alert('error page');   } } }); 2009/6/4 Dave Roberts dave.a.robe...@gmail.com Hello, I have a page which shows items in a list.  I want to call jQuery.ajax and in the return have either: A fail response with a failure string

[jQuery] Form Plugin data return type

2009-03-16 Thread Dave Roberts
Hello, I'm trying to submit a form via Ajax and receive a JSON return type http://imgur.com/2KZ1.png As you can see in the screen shot, I call the method ajaxForm, and on success of the ajax call, processJson is being invoked. This method only outputs a data.message alert. For some reason,

[jQuery] form objects and the DOM

2009-03-13 Thread Dave Roberts
Hello. I am building a webform which will be used to enter the names of people, then hit a submit button to send the data to the server. I have a button which uses jquery to append input fields to the form on the fly. Hit the button, get another text input field. These input boxes are