By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

connect to an SQL database using javascript

P: 14
hi friends,

can any one out here help me by giving me the code to connect to an SOL database using javascript.
Aug 1 '07 #1
Share this Question
Share on Google+
5 Replies


gits
Expert Mod 5K+
P: 5,353
hi ...

you cannot do that with standard-javascript - may be there are some IE-proprietary ActiveX-objs. out there ... but besides that, you have to do that on serverside. You may consider AJAX, that makes XMLHttpRequests in the background that are called by JavaScript ... and you get a more responsive application through that ... but even with that you have to call a serverside script or service or whatever to get connected with a database ...

kind regards
Aug 1 '07 #2

P: 14
thanks.
i am asking this for checking the username availibility in ASP.Net at runtime.
Aug 1 '07 #3

gits
Expert Mod 5K+
P: 5,353
thanks.
i am asking this for checking the username availibility in ASP.Net at runtime.
i see ... but you have to do the server-turnaround i mentioned ... and using ajax ... you don't need to do a pagereload for the task ... i think that is what you are after? ;)

kind regards
Aug 1 '07 #4

P: 1
hi friends,

can any one out here help me by giving me the code to connect to an SOL database using javascript.

Hello,
can u got ans of 'how to connect javascript to an MySQL database',
if yes then plz send mi code of that.
Aug 3 '07 #5

gits
Expert Mod 5K+
P: 5,353
Hello,
can u got ans of 'how to connect javascript to an MySQL database',
if yes then plz send mi code of that.
hi ...

welcome to TSDN ...

the answer is up there already ;)

kind regards
Aug 3 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.