Click to See Complete Forum and Search --> : using SQL SELECT statements in Javascript


bossgobbler
04-17-2003, 09:34 AM
Can I use a SQL SELECT statement in Javascript to pull in text from a microsoft access database into my javascript array. I would like to just do something like this.

myarray[0] = SELECT.......

Is this possible in javascript? Another words, will javascript recognize SQL code?

Thanks for the help.

khalidali63
04-17-2003, 09:40 AM
Can't use client side JavaScript to get that done.you will have to use some server side language,such as jsp,asp,php etc....

to get this done.

Cheers

khalid

bossgobbler
04-17-2003, 09:51 AM
So I guess i should do this in jsp then, since i've already got my array set up in javascript. Does anyone have an example of how they did this in jsp? Also, how is jsp different than javascript? Thanks again for the suggestions.

khalidali63
04-17-2003, 10:12 AM
jsp is different to the extent that its java language,though,syntacticaly javascript is prety much same as Java,JSP is extremely powerfull,since it brings all the power that java programming language has to the web page.
post your question at this forum

http://forum.java.sun.com/forum.jsp?forum=45

either I or some one else be able to
help you

Cheers

khalid

bossgobbler
04-17-2003, 10:29 AM
OK. I will post over there.

Thanks khalid. I think you just saved me a bunch of programming time. I have been trying to find documentation on using SQL with javascript for the past hour, and now i know why i haven't been able to find it.

haryypotter
06-22-2008, 08:08 PM
hey bossgobbler if u have find answer to tis code please do reply