![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| transforming small javascript into perl | marringi | UNIX for Dummies Questions & Answers | 9 | 05-01-2008 08:01 AM |
| another perl question | hankooknara | Shell Programming and Scripting | 5 | 07-19-2007 03:30 AM |
| PERL Question | Gary Dunn | Shell Programming and Scripting | 5 | 06-30-2004 09:09 PM |
| Perl: tk question | perleo | Shell Programming and Scripting | 1 | 06-27-2003 02:24 PM |
| PERL question | frank | Shell Programming and Scripting | 1 | 06-18-2002 04:13 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
onChange + javascript in perl CGI - question
Hello all,
Am trying to include a onChange java script to my perl CGI application which uses POST method to upload files to file_server This is how I embedded javascript in the perl code that renders CGI application Code:
print qq| <script type="text/javascript" src="display.js"> </script> |; Code:
function changeDispatch(newLink) {
if ( newLink != null ) {
document.location.href = newLink;
}
}
Code:
print $cgi->popup_menu(-name=>'fruits',
-values=>$fruits_arr,
-onChange=>"changeDispatch('$arg')");
But am not able to retrieve any such data Whats happening : If I click on any of the fruits say, "apple" the onClick effect is happening and it comes to the same initial page. If that is, fruits.cgi once I click that - it again comes to fruits.cgi as though it has been loaded for the first time What I want to happen : Based on the onClick event, I have other functions to be dispatched via GUI. That would seem to happen only when I know what option is clicked. I accept that am not that good when it comes to GUI design or adding effects to that. I have seen several website doing this, it should be something very easy for those who had already worked on this. Could you please provide some pointers ? thanks ![]() Last edited by matrixmadhan; 07-27-2008 at 09:09 AM.. Reason: added more relevant information |
| Bookmarks |
| Tags |
| cgi, html, javascript, onchange, perl, perl shift, post, shift, shift perl |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|