PDA

View Full Version : Javascript ADODB


sandie
10-23-2002, 09:21 AM
I am trying to write a code(server side) using Javascript.

First of all, is this possible(As I see javascript is mainly for Client Side programming). Even in this site, it's under Client Side Programming.

The line(colored one) is giving me a problem:-

var ommi = Server.CreateObject("Mmiwrp.mmiwrap");
ommi.Connect("Some IP adress","RUser","","password");

Any help will be very mcu appreciated!!!

glenngv
10-23-2002, 09:55 AM
is it a third-party component?

well, assuming the use of Connect method is correct,
you could try this:

var ommi = Server.CreateObject("Mmiwrp.mmiwrap");
if (ommi){
ommi.Connect("Some IP adress","RUser","","password");
}
else {
Response.Write("Object not created. Please make sure the component is registered in the server.");
}

this is just an educated guess. never tried using Jscript in server-side and using that component.