views:

223

answers:

2

Is it possible to have an overloaded function in classic asp JScript

+2  A: 

No. The last function will overwrite/replace the functions with the same name defined before it.

Read How does Classic ASP (vbscript) handel duplicate Function names

Christian Vik
A: 

No. The last definition of a function is the one that will be used.

For the best way to give your function added functionality in different contexts, try using one of the techniques described in Function overloading in Javascript - Best practices, or perhaps this technique mentioned by John Resig might suit your purposes better.

barkmadley