470,591 Members | 1,484 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,591 developers. It's quick & easy.

accessing relational databases from javascript

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
2 1388


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

Similar topics

18 posts views Thread by comcast | last post: by
3 posts views Thread by Scott Castillo | last post: by
5 posts views Thread by Martin Marques | last post: by
49 posts views Thread by Mike MacSween | last post: by
1 post views Thread by Tim Fierro | last post: by
6 posts views Thread by Shwetabh | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.