[Moo] Function being called additionally with each click

2014-01-21 Thread Jack Drysdale Jr
Hello, everyone. I've got a function that is being called an additional time for each time a button is clicked, and I can't figure out where the loop that is causing it is. HTML: JS: if ($('btnRun')){ $('btnRun').addEvent('click',function(){ *alert('This will only alert once.');* save

[Moo] Re: Function being called additionally with each click

2014-01-21 Thread Aicke Schulz
Try to use preventDefault() in your click handler: http://mootools.net/docs/core/Types/DOMEvent#DOMEvent:preventDefault -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop receiving emails from it, se

[Moo] Re: Function being called additionally with each click

2014-01-21 Thread Jack Drysdale Jr
I tried adding 'eventClick' as a parameter, then eventClick.stop(). I'll try your suggestion. Thank you, JD On Tuesday, January 21, 2014 8:55:14 AM UTC-6, Aicke Schulz wrote: > > Try to use preventDefault() in your click handler: > http://mootools.net/docs/core/Types/DOMEvent#DOMEvent:prevent

[Moo] Re: Function being called additionally with each click

2014-01-21 Thread Jack Drysdale Jr
No.. no change.. still increasing calls with each iteration. :( On Tuesday, January 21, 2014 9:11:12 AM UTC-6, Jack Drysdale Jr wrote: > > I tried adding 'eventClick' as a parameter, then eventClick.stop(). I'll > try your suggestion. > > Thank you, > > JD > > On Tuesday, January 21, 2014 8:55

[Moo] Re: Function being called additionally with each click

2014-01-21 Thread Sérgio Crisóstomo
What is `generateUpdates()` doing? is this live so you can share a link? On Tuesday, 21 January 2014 15:49:14 UTC+1, Jack Drysdale Jr wrote: > > Hello, everyone. > > I've got a function that is being called an additional time for each time > a button is clicked, and I can't figure out where the

Re: [Moo] Re: Function being called additionally with each click

2014-01-21 Thread Sanford Whiteman
Please put this in a jsFiddle and the problem will be easily apparent. The code/markup you supplied isn't sufficient to replicate this. -- S. -- --- You received this message because you are subscribed to the Google Groups "MooTools Users" group. To unsubscribe from this group and stop recei

Re: [Moo] Re: Function being called additionally with each click

2014-01-21 Thread Jack Drysdale Jr
Unfortunately, I'm on a DoD network, and jsfiddle is blocked. @Sérgio: generateUpdates() is an AJaX call to a ColdFusion component (CFC) that runs a few queries with the form data, then inserts/updates another table with another query. Something is calling the saveValues() function once the fir

Re: [Moo] Re: Function being called additionally with each click

2014-01-21 Thread Sanford Whiteman
> Unfortunately, I'm on a DoD network, and jsfiddle is blocked. OK, then just paste runnable markup/code and we'll make the Fiddle. With all these functions that don't exist it is basically impossible to test your setup. -- S. -- --- You received this message because you are subscribed to t

[Moo] Re: MooTools and CanJS 2.1

2014-01-21 Thread utan
+1 regards On Sunday, January 19, 2014 6:25:13 PM UTC-8, Justin Meyer wrote: > > MooTools users, > > Long story short, I'm spending a lot of time making some pretty awesome > features of CanJS 2.1 work with MooTools. I want to know if this interests > people. > > The long story > > I'm