By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,481 Members | 1,199 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,481 IT Pros & Developers. It's quick & easy.

accessing relational databases from javascript

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a


mir nazim wrote:
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.

--

Martin Honnen
http://JavaScript.FAQTs.com/

Jul 20 '05 #2

P: n/a
Ike
Use php. It;s relatively simple actually to do it in php, and it is a
perfect complement to javascript, the latter being for clientside scripting,
whereas php is ideal for serverside scripting. I find them to be an ideal
fit. Variables from one, can be accessed within the other in effect.

-Ike

"mir nazim" <mi****@yahoo.com> wrote in message
news:42**************************@posting.google.c om...
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

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.