Click to See Complete Forum and Search --> : How to get the value of text field into another textfield which is there in different


swathig
March 6th, 2008, 03:21 AM
Hi,

Can any one tell "How to get the value of text field into another textfield which is there in different html page without redirecting that page using Javascript..."

For example,I have page1.html with two text fields and one button. page2.html with two text fields and one button.

In page1.html,there is a text field for date entry.after filling the fields,the save button is clicked by which all the values are saved and control will be in the same page.page1.html is not redirecting to page2.html.

When i open page2.html,one of the textfield in this page should filled with that value (i.e date) which is entered in the page1.html.

Can someone please help me?

Tahnk you...

PeejAvery
March 6th, 2008, 07:40 AM
The only way to do this on the client-side (without involving server-side code) is by using cookies.

http://www.google.com/search?source=ig&hl=en&rlz=&q=javascript+cookies&btnG=Google+Search

swathig
March 7th, 2008, 06:12 AM
Hi,

Thank you for ur reply.....

Am new to java....

Will you please give outline code of cookies which are used to store the userid.......

My problem is I want to save the login userid into cookies throught the all pages , I can able to use that value in any page and I want to reset that cookie after logout....

How can I do the coding for this requirement?
Can someone please help me.....

Thank you......

PeejAvery
March 7th, 2008, 08:26 AM
Can you not do any of your own research? Google is a great tool! Try searching.

Advice: I hope you are using some server-side language to do the authentication/login to your site. That maximizes security.

swathig
March 10th, 2008, 12:16 AM
Hello PeejAvery,

I can solve my problem. Till now I did the same thing.Any way thnks for your advice.Don't think so much......