[jQuery] Re: jQuery Form Plugin target confusion

2008-05-29 Thread Aree
Hey Lasthaai, I suffered the same issue and realised what was going on. Given that $ (this) is bound back to this function in which it currently resides, affectively causes an infinite loop. Here is a way around this issue, while still using the jquery forum plugin: $(function() { for (var

[jQuery] Re: jQuery Form Plugin target confusion

2008-04-08 Thread Mike Alsup
$(function() { var _options = { target: $( this ), beforeSubmit: function(data, set, options) { alert( $(set).attr( 'action' ) ); } } $( '.form' ).ajaxForm( _options ); }); I've also tried using just the 'this' keyword. Anyway, when I

[jQuery] Re: jQuery Form Plugin target confusion

2008-04-08 Thread Iasthaai
Thanks Mike that did the trick. I want to ask a noob question about the significance of the $ in front of the form variable that you suggest. What is the difference besides using just form or set as that variable name without a $ preceding it? On Apr 8, 10:55 am, Mike Alsup [EMAIL PROTECTED]

[jQuery] Re: jQuery Form Plugin target confusion

2008-04-08 Thread Mike Alsup
Thanks Mike that did the trick. I want to ask a noob question about the significance of the $ in front of the form variable that you suggest. What is the difference besides using just form or set as that variable name without a $ preceding it? No difference. It just helps me remember