The example site you list is PHP driven. Which, is probably a good idea. To do this with javascript alone will mean that you miss non-javascript enabled browsers and run the risk of having some folks hack your data - to what end, I don't know but, if there is anyway to cause problems someone will find it.
With that in mind, this can be done with javascript by changing the method to get on the sending page and making your code on the receiving page look like so:
Code:
<div class="row">
<span class="label style1">X_1 position: </span><span class="formw" id="x_1"></span>
<input type="hidden" id="x" name="x" value="" />
</div>
<div class="row">
<span class="label style1">Y_1 position: </span><span class="formw" id="y_1"></span>
<input type="hidden" id="y" name="y" />
<script type="text/javascript">
document.getElementById('x_1').innerHTML=document.getElementById('x').value=window.location.search.match(/x=\d*/).toString().replace(/x=/, '')
document.getElementById('y_1').innerHTML=document.getElementById('y').value=window.location.search.match(/y=\d*/).toString().replace(/y=/, '')
</script>
</div>
Bookmarks