Connect to Interbase DB using Javascript.

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.

Comments

  • 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
  • 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.
    :

    [hr][grey]To err is human, but to really foul things up requires a computer. (Farmers Almanac)[/grey] :-)

  • : 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.
  • 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.
    :

    [hr][grey]To err is human, but to really foul things up requires a computer. (Farmers Almanac)[/grey] :-)

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories