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

    Joined:
    Dec 4, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice