accessing relational databases from javascript

M

mir nazim

hello,
i am writing an application and need to access mysql od sqllite from
javascript.
is it possible to access mysql/sqllite (or any free lightweight
relational databse) directly from javascript. any help is appreciated.
thanks
 
M

Martin Honnen

mir said:
i am writing an application and need to access mysql od sqllite from
javascript.
is it possible to access mysql/sqllite (or any free lightweight
relational databse) directly from javascript. any help is appreciated.

Well, if a host environment provides the objects for data base access
then JavaScript can access the data base. MS JScript on Windows has
new ActiveXObject('Program.Id')
to instantiate COM objects and there are ADODB objects for database
access which can be instantiated in an ASP page or a Windows Script Host
program or probably if needed even in a HTML page loaded in IE (if the
page is loaded locally and security settings are low enough).

However if your intention is to have an abritrary JavaScript supporting
browser loading a HTML page from a Web server access a data base server
elsewhere on the net then there are no ways to do that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top