[ https://issues.apache.org/jira/browse/WICKET-5119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13628974#comment-13628974 ]
Joel Hill commented on WICKET-5119: ----------------------------------- I cannot reproduce it at linkomatic, but there also isn't a popup that brings up a PDF file. I don't know what the original reporter's link is bringing up, but having a PDF popup seems to be integral to my issue (I have HTML popups that work fine). For some reason the focus() method is not defined for the javascript window object in IE. When the call to focus fails, since the URL is defined in the HREF attribute, IE navigates the main window to the PDF document. However, since the error occurs after the call to window.open, the PDF document loads in existing popup as well. If I had time, I would try and add a PDF popup to the linkomatic example. Unfortunately I have to move on to a different task for now. I don't know if or when I'll be able to swing back around to this problem and see if I can recreate it by modifying linkomatic. For now I have to drop in a partial workaround in our app and move on. > PopupSettings IE8 - dosen't work secound time a link is clicked. > ---------------------------------------------------------------- > > Key: WICKET-5119 > URL: https://issues.apache.org/jira/browse/WICKET-5119 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 6.4.0 > Reporter: Uffe Heerfordt > Original Estimate: 0.25h > Remaining Estimate: 0.25h > > Hi, > The popup functionality causes a script error in IE8, if the popup window is > already open. As a result the link's default behaviour is executed instead - > as ' return false; ' never is reached. > Class: org.apache.wicket.markup.html.link.PopupSettings > The problem exists in line: 188 // if(w.blur) w.focus(); > In IE8 blur and focus isen't defined - secound time a popup link is called > and therefore the logic breaks. > //An alternative: (test if w.blur is defined) > script.append("'); if( jQuery.isFunction( w.blur ) && w.blur ) { w.focus(); } > ").append(" return false;"); > Br, > Uffe. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira