If this is on the server -- that is, it's in ASP code, not in some on-page HTML or Javascript -- you won't have any problem at all. ASP runs everything you tell it to and then just sends HTML to the browser, so the browser never even sees the object.
On the other hand, if that is client-side code then your first problem is that non-IE browsers aregoing to ignore the VBScript.
If your looking at doing that in javascript and need a method that works for all three browsers, then look for examples that use Microsoft.XMLHTTP and XMLHttpRequest objects. The second one is the name of an object added to Mozilla browsers in the past few years.
In doing client-side AJAX-y stuff I generally have an if check that determines whihc of the objects it can use, then builds the corrct one for the browser and uses that for communications. I'd post an example, but the only one I could think of that had public access is just requesting additional pieces of HTML from the server at 30 second intervals and inserting them into a div.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.