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
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
Author

Parse data that has been passed through?

Gwenna Males
Greenhorn

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");
window.location="ExtendPolicy.htm?"+_sel.value+","+_start.value+","+_end.value;
}
******************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">
</form>
**************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));
</script>
********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) **********************
Thanks!
Gwenna Males
Greenhorn

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?