JavaScript Editor Ajax toolkit     Ajax website 



Main Page

An ampersand (&) in the code is followed by an expression that does not have an address. The ampersand should precede only a variable name (which has an address) and should only be used to pass the variable by reference to a function that accepts the parameter by reference.

Passing variables by reference allows the function to change the value of the variable.

NoteNote

JScript does not allow functions to be defined with reference parameters. JScript provides the ampersand to allow calls to external objects that take reference parameters.

To correct this error

  • Make sure that the ampersand (&) precedes a variable name in a call to a function and that the function accepts the parameter by reference.

See Also

Concepts

Troubleshooting Your Scripts

Other Resources

JScript Reference



JavaScript Editor Ajax toolkit     Ajax website


©