![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
I may give this up. I am passing a form object: a href="javascript:formvalidation(this);">SAVE DATA</a |
|
I receive the form: function formvalidation(thisform) { with (thisform) { if (emailvalidation(CustEmail,"Illegal E-mail")==false) {CustEmail.focus(); return false;}; But, the above line does not work. |
|
I thought that since I am passing the form as an object reference and using the WITH keyword, I do not have to refer to the form name or the .value property....... |
|
Am I wrong? I just want to pass the form and refer to the fields by name..... |
#3
| |||
| |||
|
|
I may give this up. I am passing a form object: a href="javascript:formvalidation(this);">SAVE DATA</a |
#4
| |||
| |||
|
| I may give this up. I am passing a form object: a href="javascript:formvalidation(this);">SAVE DATA</a I receive the form: function formvalidation(thisform) { with (thisform) { if (emailvalidation(CustEmail,"Illegal E-mail")==false) {CustEmail.focus(); return false;}; But, the above line does not work. I thought that since I am passing the form as an object reference and using the WITH keyword, I do not have to refer to the form name or the .value property....... Am I wrong? I just want to pass the form and refer to the fields by name..... |
![]() |
| Thread Tools | |
| Display Modes | |
| |