Hi everyone.
I have a Perl- GCI dinamic page.
The page have a single form with some submit buttons.
Each button is named 'action' but have different values (such 'cancel' 'save' 'open'). Pressing a button i reload the page and test wich button was pressed by testing the parameter 'action':
if(param('action')...
and i do something.
Now the problem is: i have a selection menu (popup_menu) and i want to do the same thing with it.
I mean, when i change selected item i want to change 'action' (f.e. to 'Select' not to the single item selected) to handle it the usual way.
I'm trying with javascript and OnChange event, but i really can't get how to change that damn param('action') with javascript.
Every tip is welcome, thanks.
I have a Perl- GCI dinamic page.
The page have a single form with some submit buttons.
Each button is named 'action' but have different values (such 'cancel' 'save' 'open'). Pressing a button i reload the page and test wich button was pressed by testing the parameter 'action':
if(param('action')...
and i do something.
Now the problem is: i have a selection menu (popup_menu) and i want to do the same thing with it.
I mean, when i change selected item i want to change 'action' (f.e. to 'Select' not to the single item selected) to handle it the usual way.
I'm trying with javascript and OnChange event, but i really can't get how to change that damn param('action') with javascript.
Every tip is welcome, thanks.