JavaScript Editor Ajax toolkit     Ajax website 

Main Page

The constructor function of a class has a return type specified. However, a constructor function automatically returns a reference to the constructed class instance; it does not return a value.

To correct this error

  1. Remove the return type specification from the constructor.

  2. Change the constructor to a method by renaming the method with a name that is different from the class name.

See Also


Troubleshooting Your Scripts

Other Resources

JScript Reference
Class-based Objects

JavaScript Editor Ajax toolkit     Ajax website