Results 1 to 2 of 2

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

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    33
    Answers
    5
    Vote Rating
    0
      0  

    Default 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
      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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •