I'm taking my first steps in vbcode and js so i make lots of stupid mistakes and this must be another one.
In a form i have a button that when pressed calls a function like this:
The funcion header is something like this :
in the end this function outputs to a text area in the form, like this:
Now, i want to use this function with more than one text area, depending on the call so i tried something like this:
But i get this error: 'thetextarea' is null or not an object.
Can someone help me with this?
If I understand you right....
....onClick = "func1(this.form, 'someName')"
function func1(formObj, fldName)
or, if you send the field object itself:
....onBlur = "func1(this)"
tks, Vincent, despite my bad explanation you got it perfectly, that was what i was looking for :)
By the way do you know some site with good tutorials in this matter ?
if you mean good tutorials on syntax -- not really. It tends to be stated and then left for the user to extrapolate. You can skim through the scripts at my site -- I attempt to explain every line I write, but...
You might find some of the comments in this thread interesting.