views:

17

answers:

0

I'm a huge fan of bookmarklets, and in Firefox making them is easy: you just use Firebug to look at the code on the page that's involved, figure out what functions to call, and then call them from your bookmarklet. In IE-only ASP pages however things are not so simple.

This current ASP I'm looking at has stuff like:

top.objHTMUtils.NewPost

which seems sane on the face of it; "top" is the top frame, "objHTMUtils" is some function library, and "NewPost" is some function. Except that when I try to just run "top.objHTMUtils.NewPost" via the IE developer JS console, it tells me that:

"Object doesn't support this property or method""

In other words, the page calls some function ... but that function doesn't exist (as far as the developer console is concerned at least). If I then try to dig through the various files from the page's <script> tags, I'm also unable to even find a reference to top or objHTMUtils.

So, what I think is going on is that these functions are from VBScript, or some other crazy ASP/IE thing. Now, I know I could just learn ASP and this stuff would make more sense, but I figure I can't be the first person who wants to "script" an ASP page, without learning all about ASPs ... can I?

So my specific question is, has anyone written any blog posts, or created any libraries, or done anything really to make controlling ("scripting") an ASP via JS easier to do? My dream would be to find a JS library with a "callCrazyVBFunction" function, but even just a blog post by anyone who's tried to do anything like this would be extremely helpful.