Connecting Tech Pros Worldwide Help | Site Map

MySql DB

Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a
#1: Mar 7 '08
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.

Thanks,
Deepan
Evertjan.
Guest
 
Posts: n/a
#2: Mar 7 '08

re: MySql DB


Deepan - M.Sc(SE) - 03MW06 wrote on 07 mrt 2008 in comp.lang.javascript:
Quote:
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)
The Natural Philosopher
Guest
 
Posts: n/a
#3: Mar 7 '08

re: MySql DB


Deepan - M.Sc(SE) - 03MW06 wrote:
Quote:
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.
Tim Streater
Guest
 
Posts: n/a
#4: Mar 7 '08

re: MySql DB


In article
<b51cea01-0217-4605-a25b-4a376eed461f@u10g2000prn.googlegroups.com>,
"Deepan - M.Sc(SE) - 03MW06" <deepan.17@gmail.comwrote:
Quote:
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.
sheldonlg
Guest
 
Posts: n/a
#5: Mar 7 '08

re: MySql DB


Deepan - M.Sc(SE) - 03MW06 wrote:
Quote:
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.
Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a
#6: Mar 12 '08

re: MySql DB


On Mar 7, 5:45 pm, sheldonlg <sheldonlgwrote:
Quote:
Deepan - M.Sc(SE) - 03MW06 wrote:
>
Quote:
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.
>
Quote:
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
Closed Thread