Prototype ASP

What is this?

Prototype ASP is an adaptation of the Prototype JavaScript Framework. It was made for use on the Microsoft “Classic” ASP platform with JScript, though it may work on other server-side JavaScript platforms.

ASP? Nobody uses that anymore.

No, some people still do. If you're one of those people, and you like JavaScript, this could change your life!

If you're not, and you're using something like Rhino or Helma, you still could be in luck. Prototype ASP doesn't really depend on anything in ASP, but I would love to hear from you and fix it if it doesn't quite work for you.

How do I use it?

In any ASP document, do something like this:

<script language="JavaScript" runat="server" src="/path/to/prototype.js.asp"></script> <script language="JavaScript" runat="server"> Class.create(...); // Go nuts here. </script>

How is this different from regular old Prototype?

Most of the great stuff in Prototype centers around DOM manipulation and AJAX, which depends on a web browser. Prototype ASP strips all of that out (including the deprecated methods) and leaves the rest: classical inheritance, enumerable, string, and array manipulation, functional programming features, and more. Try that in VBScript!

The following objects, classes, and methods have been removed in Prototype ASP:

Is there any documentation?

All documentation can be found at

Are there any known issues?


Any help fixing these would be greatly appreciated.

How About Tests?

The tests in the /test/unit/ directory of the source distribution have been adapted to work on ASP. This framework will be released as a separate project soon.

Great! Can I download it already?