English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

i have an html question for you. i'm doing some html development here and knowledge is limited. i found a javascript to open a new popup window:


i have a form on a webpage that has the following call:



when the button is pressed, a new popup window appears poperly.

my question is, depending on how the popup window is closed, i need my original window to either disable or enable a RADIO button.
any idea on how to do this? i can use hidden form fields in the popup window if it helps, like:


thanks

2007-09-28 07:21:00 · 3 answers · asked by svec7186 1 in Computers & Internet Programming & Design

i forgot to mention that this website is a testing system
on the main webpage i have a list of tests using radio buttons in a form that opens up a newwindow for that specific test.

i am a c/c++ programmer and know a little html. the form on the html page calls executables that i've written.

i would like to disable the entire window while a test is being run on another window.

when that test is finished and the webpage is closed, i would like to enable that test window. assuming the test was finished completely, i need to disable the specific test that was used. if the user just closed the test window then i need to keep the test radio button enables so the user can select the test again.

2007-09-28 07:43:56 · update #1

3 answers

Recycling my previous answer to this class of question...

parent.html
----------------









value="type msg to child window here"
id="msgText" />



value="click to send message"
onclick="sendToChild();" />



value="click to open child window"
onclick="openChildWin();" />






messages from child will go here






child.html
---------------










value="type msg to parent window here"
id="msgText" />



value="click to send message"
onclick="sendToParent();" />




messages from parent will go here






Save both files to the same folder and open the parent.html in a browser...play around - you'll figger it out.

2007-09-28 08:14:34 · answer #1 · answered by richarduie 6 · 0 0

I'd suggest looking up and reading about cookies :)
Have the popup set up a cookie with whether or not the radio button should be enabled, and when you close the popup, have the main page refresh to check the cookie.

Just an idea.

2007-09-28 14:27:55 · answer #2 · answered by biggieprice 3 · 0 0

Your best bet will be to send the results of the form as a call to a php routine on the server, have the server write out the second window, have the server read the results of the second window and rewrite a fresh copy of the first window with the appropriate button clicked.

2007-09-28 14:32:24 · answer #3 · answered by fjpoblam 7 · 0 0

fedest.com, questions and answers