hi,

i'm developing a little site, where the user has the possibility to
fill in several forms. i want that the user can navigate through those
forms via normal html links. on click the form should be submitted and
on success the content in div #xy be updated in relation to the link.
i tried it like this, but this is not working. has anybody a
workaroung or else?

thank you
anti

my try:

$(document).ready(function(){
var options = {
          beforeSubmit:  showRequest,
          success:       showResponse,
          url:                          'inc/application.adv.func.php'
 };

function showRequest(formData, jqForm, options) {
        $("body").addClass("curWait");
        var queryString = $.param(formData);
        return true;
}

function showResponse(responseText, statusText)  {
        $("body").addClass("curAuto");
        jQuery('div#adv_content').load('inc/de.application.adv.inc.php?
page='+pageNumber);
}

        $('#step1').click(function(){
                var pageNumber = '0';
                $('#myform').ajaxSubmit(options);
                return false;
        });

        // etc. etc.

        $('#step5').click(function(){
                var pageNumber = '4';
                $('#myform').ajaxSubmit(options);
                return false;
        });
});

Reply via email to