Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by frohberg

  1. frohberg

    JavaScript: Get number of rows of a recordset

    Hi again! Ahh, yes - Response.End and ASP. But I write a client-side script, I use only JavaScript. This side should run on every machine with sql server on it, an webserver like IIS is not installed. But I have managed the problem: var con = new ActiveXObject("ADODB.Connection")...
  2. frohberg

    JavaSript: Two ActiveX controls in one script

    Is there another solution? I think it's better to change the code, not the security settings from the browser. My script is running on several machines - so every machine must change this settings - it's not the best way I think.
  3. frohberg

    JavaSript: Two ActiveX controls in one script

    Hello. I have a JavaScript in a HTML page with two COM objects (ActiveX controls) - ADODB.Connection and WScript.Network. One to get the hostname of the machine and one to make database actions. If I open the browser to run this page and the script inside a message box comes up - "One...
  4. frohberg

    JavaScript: Get number of rows of a recordset

    @vbkris The same return value after I've remove the "\" in the statement. Records are still "-1". @kaht I run the Query Analyzer after and before the javascript (for testing) - same effect. The database exists definitly. But I don't understand the "Response.End&quot...
  5. frohberg

    JavaScript: Get number of rows of a recordset

    Hello. I need to get the number of rows from a recordset. I use the "RecordCount" property of the Recordset object, but the number is -1 even though in MS Query Analyzer the number of records is 1. Here my JavaScript code: var con = new ActiveXObject("ADODB.Connection")...

Part and Inventory Search

Back
Top