JavaScript

Moderators: None (Apply to moderate this forum)
Number of threads: 2061
Number of posts: 5164

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Connect to Interbase DB using Javascript. Posted by Thommie on 26 Oct 2003 at 8:47 AM
I am completely new to Web programming full stop(C++ programmer). I am trying to learn by creating a web interface to my local Interbase DB.
I have seen code looking like this which connects to an Access DB:

ObConn = new ActiveXObject("ADODB.Connection")
ObConn.Open("MyDataBase")
ObDS = ObConn.Execute("Select statement")
...

... <%=ObDS("Field")%>

...etc.

Only thing is, I have to specify UserName and Password.

Anybody got some ideas?

Most grateful for any info,
Thommie.
Report
Re: Connect to Interbase DB using Javascript. Posted by Phazxero on 27 Oct 2003 at 7:25 AM
Well, those statements are actually ASP code.
If you are running an IIS server, then i guess you may as well configure your server to restrict access to your db.

Ad for using JavaScript for username and password... there are a few scripts available on the net that perform some level of encrytion to the password and username... so you can give those a try.

But if security is an issue, i don't suggest you use JavaScript because everyone can see the source.

Hope this helps
Phazxero
Report
Re: Connect to Interbase DB using Javascript. Posted by lillu on 28 Oct 2003 at 12:54 AM
Hi, I'm using Access as a backend on my machine and I configured a DSN connection. I think the same goes for Interbase DB too.
Here's a link on how to connect to InterBase using ASP.

http://community.borland.com/article/0,1410,27152,00.html

: I am completely new to Web programming full stop(C++ programmer). I am trying to learn by creating a web interface to my local Interbase DB.
: I have seen code looking like this which connects to an Access DB:
:
: ObConn = new ActiveXObject("ADODB.Connection")
: ObConn.Open("MyDataBase")
: ObDS = ObConn.Execute("Select statement")
: ...
:
: ... <%=ObDS("Field")%>
:
: ...etc.
:
: Only thing is, I have to specify UserName and Password.
:
: Anybody got some ideas?
:
: Most grateful for any info,
: Thommie.
:


To err is human, but to really foul things up requires a computer. (Farmers Almanac)

Report
Re: Thanks Illu. The operation succeeded but the patient died. Posted by Thommie on 29 Oct 2003 at 3:21 AM
: Hi, I'm using Access as a backend on my machine and I configured a DSN connection. I think the same goes for Interbase DB too.
: Here's a link on how to connect to InterBase using ASP.
:
: http://community.borland.com/article/0,1410,27152,00.html
:
Just the info I was looking for. It almost works. The browser returns an error saying:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[INTERSOLV][ODBC InterBase driver]Optional feature not implemented.

Have something to do with the lack of server maybe?

Thommie.
Report
Re: Thanks Illu. The operation succeeded but the patient died. Posted by lillu on 29 Oct 2003 at 6:36 AM
Ok, it seems you have succeeded in setting up a DSN without actually setting up the driver for it.
To add a new driver to the list of ODBC Drivers that are already installed on your system, you have to use the driver's setup program. Have you looked on Borland's site?

I never did such a thing, I have tons of MS Drivers already.
Somebody out there?

ta,

Lillu
: : Hi, I'm using Access as a backend on my machine and I configured a DSN connection. I think the same goes for Interbase DB too.
: : Here's a link on how to connect to InterBase using ASP.
: :
: : http://community.borland.com/article/0,1410,27152,00.html
: :
: Just the info I was looking for. It almost works. The browser returns an error saying:
: Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
: [INTERSOLV][ODBC InterBase driver]Optional feature not implemented.
:
: Have something to do with the lack of server maybe?
:
: Thommie.
:


To err is human, but to really foul things up requires a computer. (Farmers Almanac)




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.