James. I would suggest running a different listener on the 'li.clickinc'
elements ... try something like this ..
Event.observe(window,'load',function() {
$$('li.clickinc').invoke('observe','click',function(e) {
$('dmain').update('Updated text after clicking on '+this.id);
});
});
Put it in the browser head of the page you want to watch ....
Then call your PeriodicalUpdater without onSuccess just as normal and see
what happens then ....
If you need evalJson and header evaluation in a periodical updater then try
somehting like this ...
var interval=setInterval(function() {
var req=new Ajax.Updater ..........
req=null;
},300000); // this is 5 minutes or 300 seconds as its milliseconds for
setInterval and the request object is nulled retrieving the bandwidth ..
if you need to unload it you can do clearInterval(interval); and it will
remove it from the DOM
Hope this helps .. please let me know how you got on
Regards
Alex
From: "James Hoddinott" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, November 05, 2008 3:58 PM
Subject: [Proto-Scripty] Re: In a bind...
>
> 2008/11/5 Alex Mcauley <[EMAIL PROTECTED]>:
>> does firebug report any error at all ...
>
> Not a thing.
>
>> 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
>
> Yes I tried this but still no joy. By adding an alert() to the
> onSuccess function I was able to see that the function does get called
> but I think it still stalls on the invoke line.
>
> I have now just noticed this in the documentation for PeriodicalUpdater:
>
> "Ajax.PeriodicalUpdater is not a specialization of Ajax.Updater,
> despite its name. When using it, do not expect to be able to use
> methods normally provided by Ajax.Request and "inherited" by
> Ajax.Updater, such as evalJSON or getHeader. Also the onComplete
> callback is hijacked to be used for update management, so if you
> wish to be notified of every successful request, use onSuccess
> instead (beware: it will get called before the update is
> performed)."
>
> which, if I'm not mistaken, would suggest the root of my problem,
> namely that the 'li.clickinc' elements just aren't available to be
> observed at the time. So I thought I'd run the same thing through an
> Ajax.Updater call but that also didn't work.
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---