Hi ,
I'm tring to implement non-event based Ajax calls (GUI screen needs to
be updated periodically .
Work environment is :Grails framework + prototype
Following is the code that I implemented in the gsp:(Grails Server
pages)
Step 1:<body onload = "new Ajax.PeriodicalUpdater('time', '/
addnewproduct/addnewproduct/time', { method: 'post',frequency:
1,asynchronous:true,decay: 1,evalScripts:true});">
Step 2 :<div id="time">Time to be displayed here</div>
Step3:Step 3:def time = {
log.info(' current time is .....')
render "${new Date()}" }
But I couldn't get the periodocalUpdater working
Please help
ManyThanks
Srilakshmi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---