Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: CGI::AJAX inside CGI::AJAX

by Anonymous Monk
on Dec 28, 2012 at 22:54 UTC ( #1010758=note: print w/ replies, xml ) Need Help??


in reply to CGI::AJAX inside CGI::AJAX

I don't understand the question

If I were you I would go to http://search.cpan.org/dist/CGI-Ajax/MANIFEST and look through the examples

I would also consider http://www.cgi-app.org/index.cgi?AjaxInfo


Comment on Re: CGI::AJAX inside CGI::AJAX
Re^2: CGI::AJAX inside CGI::AJAX
by VIVIsectI (Initiate) on Dec 31, 2012 at 13:47 UTC

    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
Node Status?
node history
Node Type: note [id://1010758]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2014-07-13 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (248 votes), past polls