Hi all,
I've only just started learning VBScript today - and I've got two questions.
First, how can I replicate the "this" functionality from JavaScript, so a line in HTML can read:
<input onsubmit="validate(this)">
And my function would then be
Function validate(SourceControl)
Second, how can I copy a form control reference to a variable, so instead of typing "Document.mainForm.controlName" each time I can just have code like:
dim curControl
curControl = Document.mainForm.controlName
And then refer to curControl from then on? Any help on these two questions would be much appreciated!
Thanks,
Russell
I've only just started learning VBScript today - and I've got two questions.
First, how can I replicate the "this" functionality from JavaScript, so a line in HTML can read:
<input onsubmit="validate(this)">
And my function would then be
Function validate(SourceControl)
Second, how can I copy a form control reference to a variable, so instead of typing "Document.mainForm.controlName" each time I can just have code like:
dim curControl
curControl = Document.mainForm.controlName
And then refer to curControl from then on? Any help on these two questions would be much appreciated!
Thanks,
Russell