I am using an Oracle 10g backend. I use the oracle TNS in JavaScript to connect with the Oracle DB. When I run the form on my local system then it displays fine, but when I run it on IIS on a client system it displays undefined. Please help me run this correctly on client machine in Google Chrome.
My Code is Below:
var conObj = new ActiveXObject('ADODB.Connection');
var conString = "Provider=OraOLEDB.Oracle; Data Source=(DESCRIPTION=(CID=GTU_APP)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=202.125.144.34)(PORT=1521)))(CONNECT_DATA=(SID=orcl)(SERVER=DEDICATED)));User Id=admin; Password=admin;"
conObj.Open(conString);
var rs = new ActiveXObject("ADODB.Recordset");
sql = "SELECT * from info"
rs.open(sql,conString);
var rsnum=rs.fields.count;
alert(rsnum);
rs.close;
conObj.close;
ActiveXObject