Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    IE9 and window.open issue

    Hi,

    Using any of the SC9 feature explorer examples, enter the following code
    Code:
    isc.Label.create({
     contents: "Label Contents",
     winRef: window.open("","window1234", "")
    });
    It should show the label and open a new window as well. This works fine in Chrome, FF etc, but fails in IE9.

    The problem is that as the properties are added to the canvas, each is checked to see if it is a function using the isA.Function method. This method uses the object.constructor property and for the window created above, there seems to be an access issue which results in an exception. But only in IE9

    We're trying to open a separate browser window with some print friendly HTML in it.


    regards,

    Colin.
    Last edited by millzee60; 21st Aug 2013, 20:16. Reason: Changed the window id to a valid one

    #2
    We're seeing that even calling just
    Code:
    window.open("", "New Window");
    Crashes IE9, presumably because the second parameter (the 'name' for the window) is expected not to contain a space character. Other browsers may be more tolerant of this.

    Let us know if you think there's actually a framework issue here too

    Thanks
    Isomorphic Software

    Comment


      #3
      OK, fair enough, my example wasn't brilliant, but even with a valid id, i.e. one with no space, the isA.Function still fails as it tries to access the .constructor property of the handle to the new window.

      Perhaps you could try this

      Code:
      isc.say (isc.isA.Function(window.open("","window2451", "")))
      Last edited by millzee60; 21st Aug 2013, 20:22. Reason: added more direct example

      Comment


        #4
        We've made a change to address this issue in the 9.0p and 9.1d branches.
        Please try the next nightly build dated Aug 28 or above

        Regards
        Isomorphic Software

        Comment


          #5
          Thx

          Many thanks, will give it a try ASAP.

          Colin.

          Comment

          Working...
          X