wood burning stoves 2.0*
The moose likes Java in General and the fly likes Parse data that has been passed through? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Parse data that has been passed through?" Watch "Parse data that has been passed through?" New topic

Parse data that has been passed through?

Gwenna Males

Joined: Sep 20, 2005
Posts: 2
Is it possible to take values that have been sent from one page to the next into seperate variables?
If not, how would I send them through to the second page seperately?
******************page 1 javascript**********************************
function btnExtend_onclick() {
var _sel = document.getElementById("days");
var _start = document.getElementById("start");
var _end = document.getElementById("end");
******************page 1 html**************************************
<form name="formx">
<input type="text" name="days" size="2">
<input type="text" name="start" size="12">
<input type="text" name="end" size="12">
**************this sends, for example 3,09202005,09252005 to page 2***********
**************page 2 javascript ***************************************
<script language="javascript">
var data = '';
document.form2.data.value = unescape(location.search.substring(1));
********page 2 html to grab the value of the data string************
<input type="text" id="data" name="data" size="20" visible="false">
*********I now need to parse out the values of _sel, _start & _end into 3 different fields (days, start & end) in page 2.. Is this possible? Right now all of the data (3,09202005,09252005) appears in all three fields (days, start & end) **********************
Gwenna Males

Joined: Sep 20, 2005
Posts: 2
OOPS sorry, this should have been posted in a Javascript forum, I'll copy it there.(unless, of course, you know the answer... then by all means I'd love to hear it)
I agree. Here's the link: http://aspose.com/file-tools
subject: Parse data that has been passed through?
Similar Threads
focus on input field
JS code not working.
Resetting fields in a form via radio button selection in a JSP
session management problem with iframes
Issue with displaying data back on the page