I have a custom date picker that sometimes doesn't work in IE. It works great in Chrome and Edge.
The code looks something like this:
<frameset> <frame>Buttons for next/prev month/year</frame> <frame>This is the actual calendar that gets redrawn when the above buttons are used <a href="javascript:parent.opener.setDate(1);">1</a> //there a different anchor tag for each day of the month </frame> <frameset>
So here, where it looks weird. We have two networks, call them old and new. The old probably has a lot of undocumented changes in global politics, and the new is probably close to the gov standard. This works in any browser on the old network, but not in IE (11) on the new network. However, it works in Edge. In addition, if the buttons of the upper frame are used to select the next / previous month or just the Today button, then all the links of the lower frame anchor work fine. There are no console errors / warnings, nothing in the network monitor, showing that the request returned an error code, clicks are simply not logged. I set a breakpoint inside customFunction () and it will not break when the links do not work, but it will break if the link works.
The only thing that seems strange to me is that the code for the popup looks something like this:
str = "<frameset><frame name='topFrame' " + "src='javascript:parent.opener.drawTop'></frame><frame name='bottomFrame' "+ "src='javascript:parent.opener.drawBottom'><frame</frameset>" document.write(str);
I looked to check, and the code that redraws the bottom frame when using the prev / next / etc buttons is the same function that gets called during the first boot.
However, what is strange is that at the first boot, the DOM inspector shows everything (top frame, bottom frame, including all individual numbers for each day of the month, etc.), but the debugger (F12 tools) doesnโt show the code, loaded from document.write (str); line. To see this code and set breakpoints, I have to use the prev / next buttons, and then an additional .html file appears in Debugger, which has built HTML that corresponds to the DOM.
javascript internet-explorer frameset
tenmiles
source share