[jQuery] Re: submit via link and redirect dynamically

2008-01-14 Thread antiheld2000
ction(){ >     pageNumber = '0'; // note: no 'var' ! So no local pageNumber > variable, so it uses the enclosing function's one. The same one that > showResponse will use later! A little bit of Javascript magic. >     $('#myform').ajaxSubmit(option

[jQuery] submit via link and redirect dynamically

2008-01-13 Thread antiheld2000
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 li

[jQuery] Re: don't get it: how to pass a variable to a callback function

2008-01-13 Thread antiheld2000
so, no ideas? i explain my problem, maybe someone has an idea for a workaround: i have 5 pages with forms. i want the user to navigate through the forms by clicking on links, not clicking on submit buttons. logically the form has to be submitted, when a link is clicked. so i need to call a callba

[jQuery] Re: don't get it: how to pass a variable to a callback function

2008-01-11 Thread antiheld2000
adv_content').load('inc/ > de.application.adv.inc.php?page='+pageNumber); >     } >     url:                  'inc/application.adv.func.php' > > } > > On Jan 11, 9:12 am, antiheld2000 <[EMAIL PROTECTED]> wrote: > > > hi, > > &

[jQuery] don't get it: how to pass a variable to a callback function

2008-01-11 Thread antiheld2000
hi, i got a silly little question: ho do i pass a variable from a function to a callback? see this example for better understanding: var options = { success: showResponse, url: 'inc/application.adv.func.php' }; function showResponse(responseText, stat