This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes javascript and database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "javascript and database" Watch "javascript and database" New topic
Author

javascript and database

Sri Sar
Ranch Hand

Joined: Mar 25, 2004
Posts: 44
Hi,
i am designing an interface in HTML/JavaScript in which the user is allowed to choose a file from a set of specified files. currently i provide the user a set of text files and jpg images and using the code shown below the user is allowed to choose one text file/jpeg image.

<form name="theForm">
<select name="sel" onchange="loadFile();">
<option> Choose the map u prefer
<option value="C:\My Documents\us.jpg" height=50 width=20> Kerala
</select>
</form>
now i want to allow the user to select data ie either images like maps or text from a mySQL database that is available in the place i am working. how should the above code be modified to allow the user to select data from a database?
thanks in advance.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15362
    
    6
You need to use a server side language to pull the data from the database
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javascript and database
 
Similar Threads
extracting data using JSP
how to store the selections made??
using javascript to create XML
representing as XML
Form based login = please help