Announcement

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

    Window.open not working in 10.1

    I'm in the process of upgrading from SmartClient Version: v8.3p_2013-11-14/PowerEdition to SmartClient_v101p_2016-05-14_PowerEdition

    I'm running in chrome Version 50.0.2661.102 m

    The standard BOM call "window.open(url)" is no longer working in 10.1. This call still works properly in my 8.3 version. Any ideas on why this code would stop working?

    Code:
    isc.ReportManager.downloadFile = function(key) {
    window.open('DownloadFile?key='+key);
    }
    
    isc.ReportManager.displayFile = function(key, print) {
    var newwin = window.open('DisplayFile?key='+key);
    if(print) newwin.print();
    }

    #2
    Forgot to mention that there are no error messages associated with this.

    If I break in either method above in 8.3 and execute a manual window.open in the console I get
    window.open("DisplayFile?key=96A2FFB01BA411E685A71B822C9590B7");
    Window {external: Object, chrome: Object, document: document, speechSynthesis: SpeechSynthesis, caches: CacheStorage…}

    If I do the same in 10.1 I get
    window.open("DisplayFile?key=96A2FFB01BA411E685A71B822C9590B7");
    undefined

    Comment


      #3
      Nevermind... It was popup blocker. Can't believe I didn't think of that. :)

      Comment

      Working...
      X