[jQuery] Re: event fires exponentially

2008-12-16 Thread Jan Limpens
Yes I do. It's just a bunch of check boxes to filter and order a result. It is not updating the form, too. Nothing disastrous about this. Keep cool, Jan On Tue, Dec 16, 2008 at 5:42 PM, MorningZ wrote: > > This original code you posted > > > $(document).ready(function(){ >$form = $('#fi

[jQuery] Re: event fires exponentially

2008-12-16 Thread MorningZ
This original code you posted $(document).ready(function(){ $form = $('#filter-form'); $form.ajaxForm({ //dataType: 'json', success: function(){ alert("peng"); }, target: "#layout-child-output

[jQuery] Re: event fires exponentially

2008-12-16 Thread Cam Spiers
I think that ajaxForm already adds a submit handler to the form you are adding it to... So i think this is doubling up. $('input', $form).change(function(){ $form.submit(); }); On Wed, Dec 17, 2008 at 6:33 AM, Jan Limpens wrote: > > And this does work: > > $(documen

[jQuery] Re: event fires exponentially

2008-12-16 Thread Jan Limpens
And this does work: $(document).ready(function(){ $form = $('#filter-form'); $('input', $form).change(function(){ $form.ajaxSubmit({ dataType: 'json', success: function(){}, target: "#layout-ch

[jQuery] Re: event fires exponentially

2008-12-16 Thread Jan Limpens
Must be some bug in ajaxForm, I guess. if I change $('input', $form).change(function(){ $form.submit(); }); to $('input', $form).change(function(){ alert('peng'); }); it fires once only, otherwise I get the exponential behavior. My guess

[jQuery] Re: event fires exponentially

2008-12-16 Thread Jan Limpens
No, unfortunately... but I may be able to put something up... On Tue, Dec 16, 2008 at 3:05 PM, Eric Hobo Garside wrote: > > Do you have a live environment where this is hosted, or at least the > code for the page to test it locally? Looks like it should be working > fine, at face value. > > On D

[jQuery] Re: event fires exponentially

2008-12-16 Thread Eric "Hobo" Garside
Do you have a live environment where this is hosted, or at least the code for the page to test it locally? Looks like it should be working fine, at face value. On Dec 16, 11:55 am, "Jan Limpens" wrote: > Hi guys, > > I have this piece of innocent looking code: > > > $(document).ready(function()