Go4Expert

Go4Expert (http://www.go4expert.com/)
-   JavaScript and AJAX (http://www.go4expert.com/forums/javascript/)
-   -   Call perl function on onClick event of Javascript button (http://www.go4expert.com/forums/perl-function-onclick-event-javascript-t24150/)

diws 11Dec2010 14:11

Call perl function on onClick event of Javascript button
 
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:


All times are GMT +5.5. The time now is 18:15.