DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 3 of 3
  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, 10:24 PM
  2. javascript rollover problems in mozilla
    By joejoeknows23 in forum Web
    Replies: 5
    Last Post: 07-18-2006, 06:31 AM
  3. Replies: 5
    Last Post: 05-06-2006, 10:22 PM
  4. Replies: 1
    Last Post: 06-27-2003, 07:10 PM
  5. Sample Sites.
    By Murray Foxcroft in forum Web
    Replies: 5
    Last Post: 11-02-2000, 02:42 AM

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links