aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes javascript and database Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
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: 15003
You need to use a server side language to pull the data from the database
 
 
subject: javascript and database
 
Threads others viewed
using javascript to create XML
extracting data using JSP
Form based login = please help
how to store the selections made??
representing as XML
IntelliJ Java IDE