Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: CGI::AJAX inside CGI::AJAX

by VIVIsectI (Initiate)
on Dec 31, 2012 at 13:47 UTC ( [id://1011060]=note: print w/replies, xml ) Need Help??


in reply to Re: CGI::AJAX inside CGI::AJAX
in thread CGI::AJAX inside CGI::AJAX

Found the answer in pjx_chained.pl. Didn't know about the Manifest feature of CPAN, I appreciate the pointer. I'm not ready to start writting Javascript too, I've only been working with Perl for about two months now. So far I've gotten away with very minimal javascript.

The answer was to add another sub to my $ajx object declaration as seen below:

my $ajx = new CGI::Ajax ( 'viewsub' => \&subViewSub, 'updatesu +b' => \&UpdateSub );

Previously this was only the viewsub, but adding updatesub allows me to reference that routine from the buttons that were created by the first one.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1011060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-04-23 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found