954,174 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

database connection(select ,insert query) within javascript function

Hi ,
How to write the database connection(insert,delete or select query) within javascript function.Is it possible.Anyone can you help me


Thank you

muthumari
Newbie Poster
20 posts since Mar 2006
Reputation Points: 10
Solved Threads: 0
 

Hi , How to write the database connection(insert,delete or select query) within javascript function.Is it possible.Anyone can you help me

Thank you

You could put java code in JSP tags in a javascript function. I think that should be possible.

madhav_2k
Newbie Poster
5 posts since Apr 2006
Reputation Points: 9
Solved Threads: 0
 

hi,
can u please send me some sample coding of javascript having a database connection.


thank Q.

kothala.srikant
Newbie Poster
1 post since Jan 2008
Reputation Points: 10
Solved Threads: 0
 

JavaScript database connection? Are you sure you know what you talking about?
Secondly, please read forum rules. We try to help solve your problems but not doing your job...

peter_budo
Code tags enforcer
Moderator
15,433 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 901
 

Being rude is among the forum rules as well.

Javascript is a Client-side language. So it can't use DB itself. But if you really want to use javascript with a database then the closest you can come is AJAX. Search the forums for some AJAX examples and you can always google on tutorials, tho my tip is www.tizag.com , their tutorials are very well structured and have learned me the basics of every language they provide tutorials for.

Zhoot
Light Poster
26 posts since Jan 2008
Reputation Points: 10
Solved Threads: 3
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You