![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi -- I have a Web page. When a user clicks on a link on this page, I need a pop-up window to open; that window will execute server-side code. When this window is closed (and not before), I need the main page to reload. I coded this for the link, which works: a onclick="w = window.open('whatever'); while (!(w.closed)); location.reload(); return false;" href="whatever">CLICK HERE</a The user clicks on the link on the main page, does what he needs to do on the pop-up window, closes that pop-up window, and the main page automatically reloads. However, I have noticed that when that pop-up window opens, the process associated with the main window chews up all of the available CPU. I suspect it's that while statement spinning in place with nothing to do. Is there a cleaner way to do what I need to do, or at least one that won't chew up the CPU? Is there a way for that pop-up window to force a reload of the main page before it closes? Thanks, CL |
#3
| |||
| |||
|
|
"Charles Lavin" <x@x.x> wrote in message news:On4fm.96762$9P.6895 (AT) newsfe08 (DOT) iad... Hi -- I have a Web page. When a user clicks on a link on this page, I need a pop-up window to open; that window will execute server-side code. When this window is closed (and not before), I need the main page to reload. ..... Hi Charles, Haven't got time to give you a full in-depth answer as I've got to go out, but if you visit my site... www.microbuild.com |
#4
| |||
| |||
|
|
Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme |
#5
| |||
| |||
|
|
Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. As an ex hallway monitor, he has a penchant for rule breaking and believes that only sites that pass strict validation are worth looking at despite the fact that none of the top sites in the world pass and that the validation tool often gives false results. |
#6
| |||
| |||
|
|
Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. |
|
Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. |
|
As an ex hallway monitor, he has a penchant for rule breaking and believes that only sites that pass strict validation are worth looking at |
#7
| |||
| |||
|
|
On 2009-08-11, Andy <andy (AT) REMOVETOEMAILmanyplay (DOT) com> wrote: Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. As an ex hallway monitor, he has a penchant for rule breaking and believes that only sites that pass strict validation are worth looking at despite the fact that none of the top sites in the world pass and that the validation tool often gives false results. Do you have an example of the validation tool giving false results? I don't mean bogus warnings (they are to be expected). |
#8
| |||
| |||
|
|
"Ben C" <spamspam (AT) spam (DOT) eggs> wrote in message news:slrnh828lg.3hf.spamspam (AT) bowser (DOT) marioworld... On 2009-08-11, Andy <andy (AT) REMOVETOEMAILmanyplay (DOT) com> wrote: Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. As an ex hallway monitor, he has a penchant for rule breaking and believes that only sites that pass strict validation are worth looking at despite the fact that none of the top sites in the world pass and that the validation tool often gives false results. Do you have an example of the validation tool giving false results? I don't mean bogus warnings (they are to be expected). Sure... http://validator.w3.org/check?uri=www.microbuild.com&charset=%28detect+aut omatically%29&doctype=Inline&group=0 Gives 2 warnings and 69 errors. Now start to read the errors and you'll soon realise that that the validator is complaining that I have used capitals (not exactly crime of the century is it?). Now go visit www.microbuild.com and check the source... guess what? I don't use capitals at all. Andy Anyhoo, let's not get off topic (I know some people revel in dragging out differences of opinion). Regardless of my coding style etc, there is a solution to the OP question which I think works quite well. |
#9
| |||
| |||
|
|
"Ben C" <spamspam (AT) spam (DOT) eggs> wrote in message news:slrnh828lg.3hf.spamspam (AT) bowser (DOT) marioworld... On 2009-08-11, Andy <andy (AT) REMOVETOEMAILmanyplay (DOT) com> wrote: Being how this is posted to alt.html, be careful of using this site as a model for general markup or design or CSS, the author seems unaware of fundamental usability issues. Apart for errors in validation, see what happens when user uses a text size that the author never anticipated even though the trouble starts at just one click up in "text only" enlargement. -- dorayme Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. As an ex hallway monitor, he has a penchant for rule breaking and believes that only sites that pass strict validation are worth looking at despite the fact that none of the top sites in the world pass and that the validation tool often gives false results. Do you have an example of the validation tool giving false results? I don't mean bogus warnings (they are to be expected). Sure... http://validator.w3.org/check?uri=www.microbuild.com&charset=%28detect+aut omatically%29&doctype=Inline&group=0 Gives 2 warnings and 69 errors. Now start to read the errors and you'll soon realise that that the validator is complaining that I have used capitals (not exactly crime of the century is it?). Now go visit www.microbuild.com and check the source... guess what? I don't use capitals at all. |
#10
| |||
| |||
|
|
Seeing as this is posted to alt.html, be careful when taking this guy's advice as he has an irresistible urge to change the text size of every site he visits despite having perfectly good eyesight just so that he can criticize. |
|
Why he doesn't use the zoom function is a mystery and one can only assume that his false eyesight issue only affects text. |
![]() |
| Thread Tools | |
| Display Modes | |
| |