1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Call perl function on onClick event of Javascript button

Discussion in 'JavaScript and AJAX' started by diws, Dec 11, 2010.

  1. diws

    diws New Member

    Dec 4, 2010
    Likes Received:
    Trophy Points:
    I want to call a perl function on onClick event of javascript button for a tool that I am working on. I have implemented this using CGI::Ajax
    The main page contains log of the SQL script that the tool has deployed and two buttons at the end of log to either Commit or rollback.
    The script is supposed to be Commit or rollbacked only after clicking either of the two buttons within the same SQL session as that in which the script was deployed, else if other session gets opened the previous session will either get auto commit or rollback, that I dont want.
    To implement my requiremant I sort out to call a perl function on onClick event of the buttons like:
    sub fnRollback(){
    print ORAT "Rollback;n";
    print "";
    But I am still not getting my task done. Can anybody help me out in resolving my problem or can anybody suggest me any other way to get my task done.:worried:

Share This Page