quick question here.
Normally, using JQuery, if I want to pass the value from an input box to another one on the same page, I`d just do something like this :
<script type="text/javascript">
$('#postalCodeBtn').live('click', function(){
var text = $('#from1').val();
$('#from').val(text);
});
</script>
But now assuming the input “from1” is on a page called detail, and “from” is on another page called maps.
How can I pass the value between both pages ?
Thanks !
If it’s not being loaded via AJAX, you’re going to have to send it to the server and use a server side language (php, python, etc.) to add it into maps. I suppose you could also save it to a cookie if you REALLY wanted to and then check for it on the “maps” page. You could also send it via GET (modify the link, if there is one) and then use JS to parse it but if it’s a form field that’s being POSTed, server side language it is.
Edit: Well, without knowing more, this is the best I can do for you.