keep track of the value of a input box

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

keep track of the value of a input box

Post by malcolmboston »

i need to keep track of the value of text in an input area basically for passing to a new window..

im assuming i need javascript, how can this be achieved?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

"keep track" how? Do the values need to be synchronized across the windows or just the initial state of the input area needs to transfer to the new window?
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i need to send the value of the input box to a new window using $_GET
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Code: Select all

var win = window.open('foo.php?input=' + escape(document.getElementById('inputAreaID').value), 'windowName', 'options');
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

:? sorry im a js noobie? what would the actual implementation code look like
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

That is implementation code.
Post Reply