• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Parse data that has been passed through?  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
Willie Smits can speak 40 languages. This tiny ad can speak only one:
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!