fss_gsm

IE8: show legend dijit in new window

Discussion created by fss_gsm on Mar 26, 2013
Latest reply on Mar 28, 2013 by fss_gsm
Hi,

We are in the process of developing a new AGS application, and one of the requirements is to show the legend in a popup window (window.open - not a dijit window).

I've written the code to show the popup, and it works fine in all browsers, but when I try to attach to the "OnUpdateEnd" event of the map to refresh the legend, it only seems to work in Chrome. In Internet Explorer (I'm testing on version 8) the legend is not updated, and when debugging using the IE Developer Tool I get a "JScript object expected" error.

I've attached a zip file with a demo of the problem, and any assistance would be greatly appreciated. The only requirement I have is that I have to use a separate html page for the popup as additional information is displayed on this window (for clarity I have removed it in this example). Apart from that requirement, I'm more than happy to refactor the code as much as possible to resolve this issue.

Thanks.

Steve

Attachments

Outcomes