Click to See Complete Forum and Search --> : extracting information from databases


theuberpuppy
09-12-2003, 09:40 PM
Is javascript a good language to use when it comes to accessing information from a databse (a simple txt file say) and then presenting it onto a page?

not necessarily relevant info on context:
-----------------------------------
What I'm trying to do is set a list of contacts into a text file. On the page i would ideally like a simple drop-down menu of all the entries of the first field of the database. And then at the click of a button i want the other fields to be printed onto the screen at a certain point.

i'm new to javascript (and have only learnt a tiny bit of JAVA before)...and i'm teaching myself too. But having said that...i'm confident that i can do everything i want in the above...except for accessing the database. I could do it using java, but don't really want to be creating an applet - i'm trying to keep it small(ish). And if applets are needed, there's better ones out there than the ones i would write.
-----------------------------------

cheers
Al

Khalid Ali
09-12-2003, 10:11 PM
No,JavaScript is does not have the capability to read/write onto and from a file on the disk.
Once its read and you want to make changes at run time,thats where JavaScript can be really handy.