As promised, I have added some new examples. I have also added several new things to the module:
ScriptManager - a collection of reusable scripts that include (so far): 1) call_server (generates the script for an ajax callback) 2) alert and confirm (exactly what you think) 3) delay (setTimeout) 4) timer (setInterval) 5) stop_timer (clearTimeout) *experimental* JQuery - helper to generate jQuery script string from Python (to reduce nested quotes): JQuery("#servertime").css("color","red")() # produces 'jQuery ("#servertime").css("color", "red");' You can check out examples here: http://www.web2pyslices.com/main/slices/take_slice/8 The timer example is the most interesting I think. Enjoy and, as always, feedback is welcome. On Sep 20, 6:57 am, Iceberg <iceb...@21cn.com> wrote: > On Sep20, 2:14am, "mr.freeze" <nat...@freezable.com> wrote: > > > > > Hi folks, > > > I just wanted to share a module that I'm working on for a > > project. It containstoolsfor managingclientevents and resources > > from the server. Here are the main features: > > > 1) Dynamic inclusion and downloading of resources (scripts/css). > > 2) Server side event handling forclientside events. > > 3) Dynamic execution of script from the controller. (through > > document.ready injection) > > 4) Helpers for google hosted ajax APIs. > > > You can see instructions and examples here: > > >http://www.web2pyslices.com/main/slices/take_slice/8 > > > It's definitely a work in progress, but let me know what you think. > > > -Nathan > > After trying to implement your 4 examples in a "normal" way, which > turns out to be tricky or even difficult (especially in the last two > cases), I am convinced that thisclienttoolshave its great value! > Well done, Nathan! > > This stuff looks cool. Would you please give some more example (in > your slice site) to demonstrate what mission this tool performs easier > than otherwise? > > I don't mean this stuff is not good. I just have poor imagination and > sorry for that. :-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---