Announcement

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

    File download not working in nightly build

    SmartGWT nightly build (12-08-2010) - FF 3.5.15

    Following code doesn't trigger browser's file download dialog
    Code:
    HTMLPane hiddenFrame = new HTMLPane();
    hiddenFrame.setWidth100(); 
    hiddenFrame.setHeight100();
    hiddenFrame.setIFrameURL(url);
    layout.addMember(hiddenFrame);
    Instead, the downloaded file binary contents are displayed right into the HTMLPane

    The same code worked perfectly with SmartGWT 2.2

    #2
    Please post a complete testcase along the the URL / file. The download vs behavior behavior depends on the mime type of the URL being requested.

    Comment


      #3
      Thanks for your reply, it put me on the track, I added :
      Code:
      hiddenFrame.setContentsType(ContentsType.PAGE);
      and now it's working with last nightly build. Does it make sense to you ?

      Obviously setContentsType() wasn't required in previous releases

      Comment

      Working...
      X