does firebug report any error at all ...
you could also try to evalJs in the options and put the invoke inside the
serverside script to see if its being fired there or not
----- Original Message -----
From: "James Hoddinott" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 05, 2008 2:46 PM
Subject: [Proto-Scripty] Re: In a bind...
>
> 2008/11/5 Alex Mcauley <[EMAIL PROTECTED]>:
>> I've made some comments and put in some debugging ... you should get an
>> alert when you click an <li> now .. with the id ..
>
> So the function now looks like:
>
> Event.observe(window,'load',function() {
> var req = new
> Ajax.PeriodicalUpdater('dticketlist','data/fetchliveticketview.php',{
> frequency:300,
> decay:2,
> onSuccess:function(e) {
> $$('li.clickinc').invoke('observe','click',function(evt) {
> alert('This: '+this.id+' Was clicked');
> $('dmain').update('Updated text after clicking on
> '+this.id);
> })
> }
> });
> req = null;
> });
>
> but still no joy, most odd and annoying. Perhaps I need to try and
> understand the debugger in Firebug so as to understand what is (or
> isn't) happening at that point.
>
>> I've commented where the `this` scope changes for you .. to help you
>> understand whats being done
>
> Thanks, its starting to make sense...
>
>> I've also removed some unnessesary vars ..
>>
>> Also its good practise (i recently discovered) to assign objects to a var
>> then null the var afterwards as it frees up alo of memory in firefox at
>> least (it saved me 40% or more) when i nulled the object ...
>
> This seems like a pretty useful tip!
>
> --
> James Hoddinott
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---