From josh at narins.net Tue Oct 11 15:09:08 2005 From: josh at narins.net (Josh Narins) Date: Tue Oct 11 15:09:23 2005 Subject: [Petal] Javascript and CSS Message-ID: <20051011140908.GA22995@narins.net> Going to do some dynamic javascript, where the function itself is dynamic, and CSS is basically the same question. The big question is basically the which properly goes around the CSS and javascript for "older" browers. That wouldn't happen here. # set the javascript using perl $tal->{javascript} = "function a(obj) { ... stuff ... }"; #template contains Petal has some intelligence built in so you can do: However, if you want to interpolate variables into js, you will have to do something like this: Hope this helps, -Warren Josh Narins wrote: >Going to do some dynamic javascript, where the function itself is >dynamic, and CSS is basically the same question. > >The big question is basically the which properly goes >around the CSS and javascript for "older" browers. > >That wouldn't happen here. > ># set the javascript using perl >$tal->{javascript} = "function a(obj) { ... stuff ... }"; > >#template contains > > > However, if you want to interpolate variables into js, you will have to > do something like this: > > > > Hope this helps, > > -Warren > Josh Narins wrote: > > >Going to do some dynamic javascript, where the function itself is > >dynamic, and CSS is basically the same question. > > > >The big question is basically the which properly goes > >around the CSS and javascript for "older" browers. > > > >That wouldn't happen here. > > > ># set the javascript using perl > >$tal->{javascript} = "function a(obj) { ... stuff ... }"; > > > >#template contains > >