Avatar

Level 10

Hi Greg,

If you look at the previous version (albeit was not waht you wanted) the following line is calling the function:

this.rawValue = js.allUpper(str);

The syntax is nameOfScriptObject.nameOfFunction(variableToPassToFunction). eg js.allUpper(str)

In your case the script object is called "js". One of the functions in this script object is called "allUpper". Your particular function needs just one piece of information from the form, this is passed through by the "str" variable which is declared earlier in the script.

In your previous post, you appeared to be missing the name of the script object in your call.

Hope that helps,

Niall