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: