[jQuery] form plugin question

[jQuery] form plugin question


Hey all,
Quick question about the form plugin and the datatype of json. I have the
code set up like:
    var options = {
                    url: 'common/testpages/login.php',
                    beforeSubmit: function(formArray, jqForm) {return
formCheckEmpty(formArray);},
                    success: showResponse,
                    dataType: 'json'                    
                };
    $("form#loginForm").ajaxForm(options);
and return test data of:
logged: true
showResponse does not get executed when I have the dataType as json, but if
I take dataType: 'json' out:
    var options = {
                    url: 'common/testpages/login.php',
                    beforeSubmit: function(formArray, jqForm) {return
formCheckEmpty(formArray);},
                    success: showResponse            
                };
    $("form#loginForm").ajaxForm(options);
showResponse gets executed.
what format does the return information need to be to get showResponse to
execute when dataType is set json, and with that said, should I have the
dataType set if I will be return information in the format of:
logged: true, moreinfo: the text, someother: blahblah
Thanks,
Benjamin Sterling
http://www.KenzoMedia.com
http://www.KenzoHosting.com
--
View this message in context: http://www.nabble.com/form-plugin-question-tf3058663.html#a8504412
Sent from the JQuery mailing list archive at Nabble.com.
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/