Hi Mark,

I did not realize I had to install prototype and sciptaculous
javascripts. DAH. I got this example working. Now on to the next
experiment. 


Thanks
Prakash

-----Original Message-----
From: Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) 
Sent: Friday, May 19, 2006 9:19 PM
To: Mark Stosberg; [email protected]
Subject: RE: [cgiapp] Re: Help with
CGI::Application::Plugin::HTMLPrototype

Hi Mark,

I finally got around to trying this and looked up your email for help.
Wherever I put  <!-- tmpl_var c.prototype.define_javascript_functions
--> declaration, GUI shows HTML::Prototype=HASH(0x101be00). I have no
idea about what's happening. I had to install quite a few dependent
modules while installing CAP::HTMLPrototype and CAP::HTDot. Would this
be because some module is not installed properly. Also when I click on
'Extra Info', I get a JavaScript error saying 'Effect is undefined'.
Could you help me understand the issue please.

Thanks in advance for your help.


Thanks
Prakash

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Mark Stosberg
Sent: Friday, November 11, 2005 10:13 PM
To: [email protected]
Subject: [cgiapp] Re: Help with CGI::Application::Plugin::HTMLPrototype

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/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • RE: [cgiapp] ... Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)
    • RE: [cgia... Prakash Inuganti -X \(pinugant - Digital-X, Inc. at Cisco\)

Reply via email to