Connecting Tech Pros Worldwide Help | Site Map

MySql DB

  #1  
Old March 7th, 2008, 05:05 AM
Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a
Is it possible to use MySql DB inside a javascript function? If so can
anyone show me with some help.

Thanks,
Deepan
  #2  
Old March 7th, 2008, 08:55 AM
Evertjan.
Guest
 
Posts: n/a

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)
  #3  
Old March 7th, 2008, 10:15 AM
The Natural Philosopher
Guest
 
Posts: n/a

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.
  #4  
Old March 7th, 2008, 11:45 AM
Tim Streater
Guest
 
Posts: n/a

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.
  #5  
Old March 7th, 2008, 12:55 PM
sheldonlg
Guest
 
Posts: n/a

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.
  #6  
Old March 12th, 2008, 10:45 AM
Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to insert a query into MYsql Db residing on my local host koti688 answers 3 October 30th, 2008 01:09 AM
Cannot connect to MySQL DB remotely Ike answers 5 May 6th, 2006 12:35 AM
Problem connecting to remote MySQL DB from VB6 Ian Davies answers 4 October 12th, 2005 07:05 PM
export data from mysql db Andy answers 1 July 20th, 2005 01:25 AM
export data from mysql db Andy answers 1 July 20th, 2005 01:23 AM