|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Need Help Debugging Script/Error in Script - Passing Variables and submitting a form with onClick
We're trying to pass variables, execute a script and submit a form with a single link click...
<a href="#" onclick="document.queue0form.NAproc.value='SubmitPW';proces sDivs(document.forms.queue0form,{});document.forms .queue0form.submit();"> The script (processDivs) and the form submit work... but when we add the variables, it fails... What are we doing wrong? The form has fields that are populated by the end-user... Each link on the page will exe the script and submit the form, with the following set of variables: NAscreentitle NAscreen NAproc NAaction NArecord NAmessage NAmessagestyle NAlevel (We only included one variable in the example above, but we need all 8) Can you help? |
|
#2
|
||||
|
||||
|
form variables
Hi Cloverlick, welcome to the forums,
If the form has - method="get" - then the input variables should be getting added to the URL.
__________________
WP plugins - Error Reporting, Clean Options http://www.mittineague.com/dev/er.php http://www.mittineague.com/dev/co.php Last edited by Mittineague : October 31st, 2007 at 02:53 PM. |
|
#3
|
|||
|
|||
|
Quote:
Thanks. No, the form is post. |
|
#4
|
||||
|
||||
|
form method
If the form is using the "post" method, does the file targeted in the form's action attribute have a way of accessing the POST array?
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Need Help Debugging Script/Error in Script - Passing Variables and submitting a form with onClick |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|