Moderators: Sergey Smirnov, Charles Cowens
// This function calls the popup window.
//
function showPlaceList(action, form, target) {
formId=action.form.id;
features="height=300,width=250,status=yes,toolbar=no,menubar=no,location=no,scrollbars=yes";
winId=window.open('','list',features); // open an empty window
hform=document.forms[form]; // reference to the hidden form
// Copy the current country variable value
// to the corresponding field of the hidden form.
hform[form+":country"].value = getCountry(action.form);
// Submit the hidden form. The output will be sent to the just opened window.
document.getElementById(form+':'+target).onclick();
}Anonymous wrote:I have noticed that if you continue to use the popup regularly, it eventually "breaks" and all you see in the popup is the page that had opened the window.
You can simulate this by continuing to click on the open popup link. The exact number of times needed varies, but for me it was generally 15-20. It will then revert back to normal behavior but break more frequently going forward.
In this particular example, that problem isn't important as the user would only be clicking on the popup once to select a country. However, I use a similar popup to display attributes related to a variety of items displayed to the user. It is not uncommon for a user to click on 30 or 40 of these in one session.
Has anyone experienced this and have any idea what the cause is? Is there a way to correct it?
Sergey Smirnov wrote:I still cannot reproduce the problem.
massep wrote:It doesn't do it as often in IE 6 as it does in Netscape 7.1.
I just have to click on the commandbutton, then close the popup then click again and close the popup... after 4 or five times, it does it (in IE).
With Netscape, it's evry other time.Sergey Smirnov wrote:I still cannot reproduce the problem.
massep wrote:I just did it with IE 6 and it took a while, 8 to 10 times. It did it after I switch from US to Canada. I tried do replicate the problem but the second time it worked fine. Could it have something to do with the fact that you call a javascript method from the onmousedown event?
I really don't know where to start my troubleshooting. I've put some alert() to see if the wrong form was submitted but it looked fine. It must get mixed-up with form and/or object names.
Cheersmassep wrote:It doesn't do it as often in IE 6 as it does in Netscape 7.1.
I just have to click on the commandbutton, then close the popup then click again and close the popup... after 4 or five times, it does it (in IE).
With Netscape, it's evry other time.Sergey Smirnov wrote:I still cannot reproduce the problem.
massep wrote:I found an easy way to test this, I reduced the size of my main IE window so I can see both the main and the popup at the same time... I keep clicking until it does it. I noticed that if I leave a second between the clicks, it does it every second time but if I click more rapidly, it doesn't do it.massep wrote:I just did it with IE 6 and it took a while, 8 to 10 times. It did it after I switch from US to Canada. I tried do replicate the problem but the second time it worked fine. Could it have something to do with the fact that you call a javascript method from the onmousedown event?
I really don't know where to start my troubleshooting. I've put some alert() to see if the wrong form was submitted but it looked fine. It must get mixed-up with form and/or object names.
Cheersmassep wrote:It doesn't do it as often in IE 6 as it does in Netscape 7.1.
I just have to click on the commandbutton, then close the popup then click again and close the popup... after 4 or five times, it does it (in IE).
With Netscape, it's evry other time.Sergey Smirnov wrote:I still cannot reproduce the problem.
massep wrote:
when it doesn't, it returns this:
BEFORE RESTORE_VIEW 1
AFTER RESTORE_VIEW 1
BEFORE RENDER_RESPONSE 6
AFTER RENDER_RESPONSE 6
That would to it! And it's constant...
Return to JavaServer Faces Framework
Users browsing this forum: No registered users and 4 guests