Click to See Complete Forum and Search --> : Get value from textbox of different forms


localhost
04-01-2003, 12:08 AM
Hi all,

I've got multiple HTML files that share this javascript file. I would like to know, how is it possible to store the value somewhere (After performing javascript calculations from a page [file.html]) from a textbox and display it in another HTML (file2.html) [IE: call up the value stored in the form of file.html] file, on a particular textbox?

BTW, the javascript calculations are all performed in a function and on submit of the form, it will call the function which will display the results.

gil davis
04-01-2003, 05:47 AM
The only persistent storage capability you have in JavaScript is cookies.

You can pass values between pages using the search portion of the location object. See http://developer.netscape.com/viewsource/goodman_url_pass/goodman_url_pass.html for a good explanation.

You can use frames and load subsequent pages into the same target frame with the data stored in the frameset.

You can open another window and share the data with the new window using the opener property.

localhost
04-01-2003, 09:15 PM
Hi gil,

Thanks for the reference. I'll check it out and also keep you updated if I managed to get it work with alternative solution.