473,322 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

MySql DB

Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.

Thanks,
Deepan
Mar 7 '08 #1
5 1305
Deepan - M.Sc(SE) - 03MW06 wrote on 07 mrt 2008 in comp.lang.javascript:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.
Cientside No, methinks.

Serverside under ASP, yes, I heard.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Mar 7 '08 #2
Deepan - M.Sc(SE) - 03MW06 wrote:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.

Thanks,
Deepan
Dunno. You would need to open a socket back to the server on which MySQL
resides.

deeply dangerous practice.

Use serverside php instead.
Mar 7 '08 #3
In article
<b5**********************************@u10g2000prn. googlegroups.com>,
"Deepan - M.Sc(SE) - 03MW06" <de*******@gmail.comwrote:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.
You can do this indirectly by using HTTPRequest. You can do this from
within JavaScript and have a script run on the server which can query
your database and return the results as a string. Anything you output in
the script (e.g. via echo with PHP) gets returned to your Javascript. I
tend to structure the string on the server side so it's easily parsed
into an array for JavaScript use.

By the way why are you posting from Google? I normally filter all Google
posts out.
Mar 7 '08 #4
Deepan - M.Sc(SE) - 03MW06 wrote:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.

Thanks,
Deepan
You need AJAX. Basically you would be sending a request to the server
and have a script there query the DB and return the information to you.
Mar 7 '08 #5
On Mar 7, 5:45 pm, sheldonlg <sheldonlgwrote:
Deepan - M.Sc(SE) - 03MW06 wrote:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.
Thanks,
Deepan

You need AJAX. Basically you would be sending a request to the server
and have a script there query the DB and return the information to you.
Can you explain it to me in a brief way. With some examples.

Thanks,
Deepan
Mar 12 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: francescomoi | last post by:
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: ---------------------------------- # export PATH=$PATH:/usr/local/mysql/bin/ # export mysqlclient=mysqlclient_r # python setup.py...
4
by: mikey | last post by:
Hi all, I'm having great problems trying to install the latest MySQl RPM package onto my Red Hat Linux OS. There is already MySQL v 3.0 pre-installed with the RH Linux distribution disk but I...
0
by: Yun Guan | last post by:
Hello mysql gurus, I am trying to run perl on mysql database on Red Hat box. I want to install DBI and DBD:mysql using CPAN: perl -MCPAN -e shell cpan>install DBI The above succeeded, but...
0
by: Mike Chirico | last post by:
Interesting Things to Know about MySQL Mike Chirico (mchirico@users.sourceforge.net) Copyright (GPU Free Documentation License) 2004 Last Updated: Mon Jun 7 10:37:28 EDT 2004 The latest...
2
by: Saqib Ali | last post by:
I installed mySQL and have it running.... but I think I made a mistake somewhere along the line...... I believe I did follow the instructions that were provided with the distribution at:...
1
by: Alex Hunsley | last post by:
I am trying to install the DBD::mysql perl module. However, it claims I need mysql.h: cpan> install DBD::mysql CPAN: Storable loaded ok Going to read /home/alex/.cpan/Metadata Database was...
0
by: ./Rob & | last post by:
Hi gang: I'm experiencing a problem with MySQL -- I updated MySQL from version 4.1.0 to 4.1.10 and now when I login as root it doesn't show all the databases I should have access to, nor it...
2
by: trihanhcie | last post by:
I m currently working on a Unix server with a fedora 3 as an os My current version of mysql is 3.23.58. I'd like to upgrade the version to 5.0.18. After downloading from MYSQL.COM the package on...
1
by: manish deshpande | last post by:
Hi, When i'm installing MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm by the following command: rpm -i MySQL-server-standard-5.0.24a-0.rhel3.i386.rpm the following error is being shown: ...
3
by: menzies | last post by:
Hi, I"m new to this forum, but I have been trying all day to install DBD::mysql onto my Intel MacBook. I've read lots of forums pages and none have gotten me to a successful 'make test' or a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.