MySql DB

  • Thread starter Deepan - M.Sc(SE) - 03MW06
  • Start date
D

Deepan - M.Sc(SE) - 03MW06

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

Thanks,
Deepan
 
E

Evertjan.

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

The Natural Philosopher

Deepan said:
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.
 
T

Tim Streater

Deepan - M.Sc(SE) - 03MW06 said:
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.
 
D

Deepan - M.Sc(SE) - 03MW06

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
 

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
474,145
Messages
2,570,824
Members
47,370
Latest member
desertedtyro29

Latest Threads

Top