Actually AgentScorpion helped me out on IRC .. here was the issue:

$('#form2').ajaxForm({ target: '#container', type: 'post' });

I was trying to send ajaxForm a function with parameters ... all is well
now, thanks. :-)

On 8/29/07, Josh Nathanson <[EMAIL PROTECTED]> wrote:
>
>
> Hi Steve,
>
> Make sure your JSON is well formed.  If it is not, your callback probably
> won't work.  Try doing just a "console.log" with the returned json data
> and
> see what you get, then try to "eval" it to see if will return an object.
>
> -- Josh
>
>
> ----- Original Message -----
> From: "Steve Finkelstein" <[EMAIL PROTECTED]>
> To: "jQuery (English)" <jquery-en@googlegroups.com>
> Sent: Wednesday, August 29, 2007 2:47 PM
> Subject: [jQuery] DOM problems with jQuery's Form Plugin
>
>
> >
> > Hi,
> >
> > The following code works:
> >
> > $(document).ready(function() {
> > // bind 'form2' and provide a simple callback function
> > $('#form2').ajaxForm(function() {
> >       alert("DEBUG Test");
> >    });
> > });
> >
> > However the following does not:
> >
> > $(document).ready(function() {
> > // bind 'form2' and provide a simple callback function
> > $('#form2').ajaxForm(function() {
> >    // Server should send data back in json encoding
> >    target: '#container'
> >    });
> > });
> >
> > No broken responses. My <div id="container"></div> just does not get
> > updated. My server sends back:
> >
> > echo "DEBUG MESSAGE";
> >
> > Firebug shows the echo'd response.
> >
> > Totally would appreciate any help.
> >
> > - sf
> >
>
>

Reply via email to