Mike... I feel that it's easier to simply return the HTML string for the element that will get appended. Your example seems to return JSON (a javascript object right?). What are your thoughts on that?
<!----------------//------ andy matthews web developer certified advanced coldfusion programmer ICGLink, Inc. [EMAIL PROTECTED] 615.370.1530 x737 --------------//---------> -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Mike Alsup Sent: Wednesday, December 27, 2006 5:32 PM To: jQuery Discussion. Subject: Re: [jQuery] Transmit form contents, receive response...best method? > I'm going to work on this myself, but I wondered if anyone had suggestions > for the best way to accomplish this. I'd use the form plugin! :-) And maybe have the server return a json object like: { "title": "the new title", "sortOrder": 1 } The script could be something like this: $('#newsForm').ajaxForm({ success: function(data) { updatePage(data.title, data.sortOrder); $('#newsForm')[0].reset(); } }; function updatePage(title, sortOrder) { // update the page here } _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
