This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

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)
 
Those are the largest trousers in the world! Especially when next to this ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!