sleeper
08-01-2003, 12:19 PM
I have two radio buttons: File and Paste, they're both within <form> tags.
The default is File and I displays a file chooser right under it. I made a Javascript function which is called by onClick when you click Paste, and it will show a textbox.
My problem is when after you hit "Submit" (a button on the bottom of the that will display a different HTML), and then press the "Back" button. Back on the original page, it will have "Paste" radio still clicked, BUT it will show the file chooser.
I actually have multiple sets of these radio buttons on the page and I want all of them to be set correctly if the user goes back. I tried to use onLoad, but onLoad needs to be in a <body> tag, meaning that I won't have form yet. Furthermore, the javascript function that displays the textbox, for example, takes in "this" as well as "form" so it knows what was clicked.
Thanks a lot!
The default is File and I displays a file chooser right under it. I made a Javascript function which is called by onClick when you click Paste, and it will show a textbox.
My problem is when after you hit "Submit" (a button on the bottom of the that will display a different HTML), and then press the "Back" button. Back on the original page, it will have "Paste" radio still clicked, BUT it will show the file chooser.
I actually have multiple sets of these radio buttons on the page and I want all of them to be set correctly if the user goes back. I tried to use onLoad, but onLoad needs to be in a <body> tag, meaning that I won't have form yet. Furthermore, the javascript function that displays the textbox, for example, takes in "this" as well as "form" so it knows what was clicked.
Thanks a lot!