Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Using CGI::Ajax for multiple form buttons/divs simultaneously

by Polyglot (Chaplain)
on Mar 18, 2018 at 16:54 UTC ( [id://1211196]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cgi = new CGI;
    my $pjx = new CGI::Ajax( 
    ...
    return $html;
    
    } # END SUB main
    
  2. or download this
    <div>
      <h3>SCRIPTURE COMPARISON</h3>
    ...
      <select id="comparison_text" name="ncomparison_text"  onchange="getB
    +ibCompare(['comparison_text'],['dcomparison_text'], 'POST'); ">
    
    . . .
    
  3. or download this
    my $cgi = new CGI;
    my $pjx = new CGI::Ajax( 
    ...
        $pjx->cgi( $cgi );
        print $pjx->build_html( $cgi, \&main, {-charset=>'UTF-8', -expires
    +=>'-1d'} );
        $pjx->JSDEBUG(1);
    
  4. or download this
    <div id="top_menu" name="ntop_menu" class="flex-container topnav">
    
    ...
        
    <input type="submit" id="next_verse" name="nnext_verse" value="Next Ve
    +rse -->" $nv 
        onclick="processFormInputs(['next_verse'],['top_menu'], 'POST'); t
    +his.form.submit();" />
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-04-25 05:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found