-
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
-
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
-
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
-
By aswhitehead in forum Web
Replies: 0
Last Post: 03-10-2007, 10:24 PM
-
By joejoeknows23 in forum Web
Replies: 5
Last Post: 07-18-2006, 06:31 AM
-
Replies: 5
Last Post: 05-06-2006, 10:22 PM
-
By Joshua in forum ASP.NET
Replies: 1
Last Post: 06-27-2003, 07:10 PM
-
By Murray Foxcroft in forum Web
Replies: 5
Last Post: 11-02-2000, 02: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
Forum Rules
|
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
|
Bookmarks