Hi... err... whoever... On Sonntag, 11. Mai 2008, [EMAIL PROTECTED] wrote: > i am new to pylons and found the webhelpers are quite handy. i need to > program on other javascript lib(dhtml calendar) which is not include > in webhelpers. if i want to make something reusable other than > hardcode the js everytime, i can think of marco of the template > system or extend the webhelpers myself.
At the beginning I was also mistakenly thinking that Webhelpers are bound to Prototype/Script.Aculo.Us. And it was shipping with a copy of these libraries for simplicity. But besides from some code snippets hardwired into the Webhelpers that wasn't really much. And of course you are free to use any other Javascript library instead. We decided (Mike Orr mainly) that the next Webhelpers (0.6) won't contain any more hardcoded Javascript in any way. So if you use a complex Javascript framework or plain Javascript then you would have to create the code outside of the Webhelpers. I once started to write macros for jQuery until I realized how stupid that is. There is no reason to simplify writing jQuery code because it can't get any shorter. :) Cheers Christoph -- When you do things right people won't be sure you've done anything at all.
signature.asc
Description: This is a digitally signed message part.
