E
EviL KerneL
Hi -
I am working on a survey project which has a next button that takes
you to the next set of questions and so on. It does this by means of
an OnClick event which takes the answers from the questions and adds
them to a database while taking you to the next page. I have a second
onclick event I would like to combine with the above which changes the
value of the button to "please wait" (to prevent the user from click
on the buton more than once). When I try these events individualy they
work just fine, but for the life of me I cannot figure out how to
combine them.
*Here is the 1st click event:
--------------------------------------------------------------------
<input class="submit-button" type="submit" name="next" value="Next"
onclick="document.PdcSurvey.PdcButtonPressed.value='next';" />
--------------------------------------------------------------------
*Here is the 2nd onclick event:
--------------------------------------------------------------------
onClick='PdcSurvey.next.value="Please Wait...";return true'>
--------------------------------------------------------------------
I have tried adding a semicolon to divide them both but that does not
seem to work. Here is what I did:
<input class="submit-button" type="submit" name="next" value="Next"
onclick="document.PdcSurvey.PdcButtonPressed.value='next';" /;
'PdcSurvey.next.value="Please Wait...";return true'>
I have tried several ways to do this but I cannot seem to get them to
work together. Can anyone shed some light?
Thanks!
I am working on a survey project which has a next button that takes
you to the next set of questions and so on. It does this by means of
an OnClick event which takes the answers from the questions and adds
them to a database while taking you to the next page. I have a second
onclick event I would like to combine with the above which changes the
value of the button to "please wait" (to prevent the user from click
on the buton more than once). When I try these events individualy they
work just fine, but for the life of me I cannot figure out how to
combine them.
*Here is the 1st click event:
--------------------------------------------------------------------
<input class="submit-button" type="submit" name="next" value="Next"
onclick="document.PdcSurvey.PdcButtonPressed.value='next';" />
--------------------------------------------------------------------
*Here is the 2nd onclick event:
--------------------------------------------------------------------
onClick='PdcSurvey.next.value="Please Wait...";return true'>
--------------------------------------------------------------------
I have tried adding a semicolon to divide them both but that does not
seem to work. Here is what I did:
<input class="submit-button" type="submit" name="next" value="Next"
onclick="document.PdcSurvey.PdcButtonPressed.value='next';" /;
'PdcSurvey.next.value="Please Wait...";return true'>
I have tried several ways to do this but I cannot seem to get them to
work together. Can anyone shed some light?
Thanks!