Javascript incompatible with mozilla, opera


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Javascript incompatible with mozilla, opera

  1. #1
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    84

    Javascript incompatible with mozilla, opera

    Hi

    I am new to javascript programimg. I have developed CD catlogue to browse the pdf files. It works verywell with Internet explorer. But it doesn't work with Mozilla and othet browsers. I feel it is due to activex objects. Here is my script.

    function ENDSWITHSEARCH(){


    var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source = G:\DATABASE.mdb";

    var rs = new ActiveXObject("ADODB.Recordset");
    var SQL = "select * from PAPERLIST where TITLE like '%" + document.myForm.txtName2.value +"'order by TITLE";
    cn.Open(strConn);
    rs.Open(SQL, cn,1,1);


    Is there anyway in javacscript to avoid the usage of activex to connect database


    Regards

    Faisal

  2. #2
    Join Date
    Jul 2009
    Posts
    6
    1) Wrong section; this is for java not java script http://forums.devx.com/forumdisplay.php?f=112
    2) Active-X is limited to Internet Explorer
    3) Accessing a database client-side is extremely insecure

  3. #3
    Join Date
    Jan 2005
    Posts
    413
    technically what you are using there is not JavaScript but the Microsoft adaptation called Jscript, and it will only work with Internet Explorer. As has already been mentioned, it's really not something that should be used to connect to a database.

Similar Threads

  1. Replies: 0
    Last Post: 03-10-2007, 11:24 PM
  2. javascript rollover problems in mozilla
    By joejoeknows23 in forum Web
    Replies: 5
    Last Post: 07-18-2006, 07:31 AM
  3. Replies: 5
    Last Post: 05-06-2006, 11:22 PM
  4. Replies: 1
    Last Post: 06-27-2003, 08:10 PM
  5. Sample Sites.
    By Murray Foxcroft in forum Web
    Replies: 5
    Last Post: 11-02-2000, 03:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center