[Catalyst] Protoype define_javascript_functions with Catalyst
Matt S Trout
catalyst at trout.me.uk
Thu Sep 8 17:23:38 CEST 2005
On Thu, Sep 08, 2005 at 11:08:01AM -0400, Kevin Old wrote:
> Hello everyone,
>
> I'm working on a Catalyst app that needs the use of HTML::Prototype
> and all is working just fine, but I have questions about using the
> define_javascript_functions.
>
> Right now, I'm making a call to it on every page that needs it. All
> of the javascript is shown in the source and seems a little redundant
> to call it in several places.
>
> My thoughts are to create an ajaxjs.js file that won't be processed as
> a static JS file, and then put my call to define_javascript_functions
> in there and link to that script in the pages that need it.
ISTR the Prototype helper will create a static .js file for you ...
--
Matt S Trout Specialists in perl consulting, web development, and
Technical Director UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd. mst (at) shadowcatsystems.co.uk for more information
+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +
More information about the Catalyst
mailing list