Hi,
Is it possible to pass a Javascript Variable form input from one page to another.
Within the input box I have captured an X and Y co-ordinate, but is it possible to pass this to an action page to allow me to manipulate??
Anyhelp would be greatly apprecated
I have pasted the code for the Javascript function:
<style>
.clickablearea{cursor:hand;}
</style>
</head>
<body>
<script>
function mouseMoved()
{
var eobj,thex,they
eobj = window.event
if(eobj.srcElement.className=="clickablearea"
{
thex = eobj.clientX
they = eobj.clientY
document.formname.x.value=thex
document.formname.y.value=they
}
}
document.onclick=mouseMoved
</script>
<div class="clickablearea">The clickable area that, once clicked upon populates the input box with an X and Y co-ordinate</div><br><br>
<form name="previewXYPage.cfm Mehod="Post">
<input name=x><input name=y>
<INPUT NAME="X"><BR><INPUT NAME="Y"><BR>
<INPUT TYPE = "Submit" VALUE ="Enter">
<INPUT TYPE = "Reset" VALUE ="Clear">
</FORM>
</body>
</html>
Is it possible to pass a Javascript Variable form input from one page to another.
Within the input box I have captured an X and Y co-ordinate, but is it possible to pass this to an action page to allow me to manipulate??
Anyhelp would be greatly apprecated
I have pasted the code for the Javascript function:
<style>
.clickablearea{cursor:hand;}
</style>
</head>
<body>
<script>
function mouseMoved()
{
var eobj,thex,they
eobj = window.event
if(eobj.srcElement.className=="clickablearea"
{
thex = eobj.clientX
they = eobj.clientY
document.formname.x.value=thex
document.formname.y.value=they
}
}
document.onclick=mouseMoved
</script>
<div class="clickablearea">The clickable area that, once clicked upon populates the input box with an X and Y co-ordinate</div><br><br>
<form name="previewXYPage.cfm Mehod="Post">
<input name=x><input name=y>
<INPUT NAME="X"><BR><INPUT NAME="Y"><BR>
<INPUT TYPE = "Submit" VALUE ="Enter">
<INPUT TYPE = "Reset" VALUE ="Clear">
</FORM>
</body>
</html>