On 2005-11-09, Prakash Inuganti -X (pinugant - Ahura Inc. at Cisco) <[EMAIL PROTECTED]> wrote: > > Can you help me with a small example to use > CGI::Application::Plugin::HTMLPrototype in HTML::Template. I am trying > to add a row of data dynamically retrieved by an sql query when a user > enters a date into text field.
Prakash, You might consider using the HTDot plugin, which adds a dot notation for method calls to HTML::Template, like Template Toolkit has. You can access all methods in the CGI::App object by adding this: $t->param( c => $self ); I have submitted a patch so the next version will do this by default. Then it's all very simple. Just put code like this in your template: <!-- tmpl_var c.prototype.define_javascript_functions --> <a href="#" onclick="javascript:<tmpl_var c.prototype.visual_effect('Appear','extra_info')> return false;">Extra Info</a> <div style="display: none" id="extra_info">Here is some more extra info</div> Mark -- http://mark.stosberg.com/ --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.erlbaum.net/ http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2 To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]