1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    33
    Answers
    5
    Vote Rating
    0
    raj542 is on a distinguished road

      0  

    Default Answered: window.open() not working for files other than jpeg in IE8

    Answered: window.open() not working for files other than jpeg in IE8


    Hi all,

    Code:
    window.open("Rest resource path" +"_blank");
    opens only jpeg files, gives error when try to open files other than jpeg.

    please let me know how to solve this issue.

    Thanks,
    Raj

  2. Hi all,


    This code can be used instead of window.open() method which works fine in all browsers as window.open() gives problem in IE8.


    Code: var downloadUrl = "../../rest/docspace/folders/" + folderId + "/files/" + rows[0].data.id + "/download";
    var downloadFrame = document.createElement("iframe");
    downloadFrame.setAttribute('src',downloadUrl);
    document.body.appendChild(downloadFrame);

  3. #2
    Sencha User
    Join Date
    Apr 2012
    Posts
    33
    Answers
    5
    Vote Rating
    0
    raj542 is on a distinguished road

      0  

    Default


    Hi all,


    This code can be used instead of window.open() method which works fine in all browsers as window.open() gives problem in IE8.


    Code: var downloadUrl = "../../rest/docspace/folders/" + folderId + "/files/" + rows[0].data.id + "/download";
    var downloadFrame = document.createElement("iframe");
    downloadFrame.setAttribute('src',downloadUrl);
    document.body.appendChild(downloadFrame);

Tags for this Thread