Connecting Tech Pros Worldwide Help | Site Map

MySql DB

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 7th, 2008, 04:05 AM
Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a
Default MySql DB

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, 07:55 AM
Evertjan.
Guest
 
Posts: n/a
Default 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, 09:15 AM
The Natural Philosopher
Guest
 
Posts: n/a
Default 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, 10:45 AM
Tim Streater
Guest
 
Posts: n/a
Default 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, 11:55 AM
sheldonlg
Guest
 
Posts: n/a
Default 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, 09:45 AM
Deepan - M.Sc(SE) - 03MW06
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.