• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

how to store the selections made??

 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
using HTML/JS i have created a graphical interface as follows:
in page 1, the user has a set of icons displayed on the screen.
when the user clicks on the first icon, he can choose a map using the
<select> and <option> tags. in the code, as soon as the user selects a
map, that is displayed on the screen.

<script language="javascript">
function loadFile() {
var fileName = document.theForm.sel.value;
if (fileName != "") {
location.href = fileName;
}
}
</script>

<body>
Please Choose the map u prefer and after the map has been displayed,click
on the "Back" button
<form name="theForm">
<select name="sel" onchange="loadFile();">
<option> Choose the map u prefer
<option value="C:\My Documents\usa.jpg" height=50 width=20>US
</select>
</form>
now the user clicks the back button and goes back to the home page. then he can click on the second icon and using similar code, he is allowed to select text files now instead of maps.
now the selections made by the user are sent to a server that gets
these inputs and does necessary calculations.
my question is that as soon as the user selects a map (or a text
file), is it possible to store the user selections in some way (as a
variable or a XML file... etc) so that a server can interpret these data
and do necessary processing.
thanks in advance.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can store it wih a server side language and that is the only real way to do it.
With javascript you can store it in an xml file, but you are looking at using Active-X which means only IE supports it.
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic