Quantcast
Channel: How to open two windows in response to one click
Viewing all articles
Browse latest Browse all 13

How to open two windows in response to one click

0
0

I have the following snippet of code that runs in response to a click event:

            //show the siteplan form
            this.graphicAnalysisResource = this.analysisResource + "?projectId=" + this.projectId + "&featureId=" + featureId + "&layerId=" + graphicLayer.layerId;
            window.open(this.graphicAnalysisResource);

            //show the siteplan drawing
            this.graphicAnalysisResource2 = "/analysis/SubmittalDrawing" + "?projectId=" + this.projectId + "&featureId=" + featureId + "&layerId=" + graphicLayer.layerId;
            window.open(this.graphicAnalysisResource2);

If I comment out either the top block (//show the siteplan form) or the bottom block (//show the siteplan drawing), then I get one new window with the appropriate page displayed.

However, if I leave both blocks in there, then I only get one new window - with the first page displayed.  The second page never shows.

If I step through the code using the debugger, everything seems to work right - no errors thrown.  I'm just not getting a second window.

Any ideas what may be going on?


Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images