[jQuery] Re: conditional events

2008-06-06 Thread Mike Alsup
> I'm trying to trigger an event only when a condition is met, > >         $(document).ready(function() { >                 $('#leftScroll').click(function() {     >                                 $('#scrollContent') >                                 .animate( >                                  

[jQuery] Re: Conditional events

2008-01-03 Thread LeonL
Thank you! Works great now :) Leon. Mika Tuupola wrote: > > > > On Dec 21, 2007, at 9:32 PM, LeonL wrote: > >> This will work fine - alert the edit var value. >> However, when adding 'event: "edit"' it wont do a thing: >> >> >> $(".item_title").editable("operator.php",{ >>

[jQuery] Re: Conditional events

2008-01-02 Thread Mika Tuupola
On Dec 21, 2007, at 9:32 PM, LeonL wrote: This will work fine - alert the edit var value. However, when adding 'event: "edit"' it wont do a thing: $(".item_title").editable("operator.php",{ submitdata: {'type': 'title'}, width: 250, eve

[jQuery] Re: Conditional events

2007-12-21 Thread LeonL
Thanks Mika, but it doesn't seem to work for me :( What I did is (for testing): $(".item_title").editable("operator.php",{ submitdata: {'type': 'title'}, width: 250, }).bind("click",function() { alert(edit) }); This will w

[jQuery] Re: Conditional events

2007-12-21 Thread Mika Tuupola
On Dec 21, 2007, at 12:24 PM, LeonL wrote: Hello everyone. I've been trying for some time now to make this code to execute ONLY if a variable called edit equals to 1: The code: $(".item_title").editable("operator.php",{ submitdata: {'type': 'title'},