G
gimme_this_gimme_that
I have an anchor tag as follows:
<a href="javascript:copyValue(this,6);submitForm(this);">Click Here</
a>
In copyValue() I want to overwrite the submitForm() function when
action1 == 6.
I get an Identifier Expected Error.
I require a solution that doesn't put copyValue() and submitForm()
into a namespace.
(What I'm trying to do is overwrite submitFunction that is included in
a JS under the copyValue definition.)
Thanks.
<script language="JavaScript">
<!--
function copyValue(form, action1){
if (6 == action1 ) {
submitForm= function(this) {
var form = document.forms['idExpressForm'];
form.formType.value = 6;
form.submit();
}
}
}
function submitForm(theForm,action1){
var form = document.forms['idExpressForm'];
form.formType.value = action1;
form.submit();
}
//-->
<a href="javascript:copyValue(this,6);submitForm(this);">Click Here</
a>
In copyValue() I want to overwrite the submitForm() function when
action1 == 6.
I get an Identifier Expected Error.
I require a solution that doesn't put copyValue() and submitForm()
into a namespace.
(What I'm trying to do is overwrite submitFunction that is included in
a JS under the copyValue definition.)
Thanks.
<script language="JavaScript">
<!--
function copyValue(form, action1){
if (6 == action1 ) {
submitForm= function(this) {
var form = document.forms['idExpressForm'];
form.formType.value = 6;
form.submit();
}
}
}
function submitForm(theForm,action1){
var form = document.forms['idExpressForm'];
form.formType.value = action1;
form.submit();
}
//-->