1. #1
    Ext User
    Join Date
    Apr 2009
    Posts
    1
    Vote Rating
    0
    rocafreestyler is on a distinguished road

      0  

    Default MediaWindow PDF disappears

    MediaWindow PDF disappears


    Hi,

    I have used the following code within my page to open a PDF, this works fine on both Firefox and Internet Explorer. I can move the window around the screen with no issues. However I do encounter a problem once I click "+" or "-" sign within the pdf reader. Once I have press either of these and then move the mediaWindow around the screen the window blanks and the PDF disappears. This only effects IE not Firefox.

    Has anybody encountered this before. I am running IE Ver 8.0.7600.

    Any help would be greatly appreciated.

    PHP Code:
    var mConfig = { 
             
    mediaType   :'PDF'
             
    url'https://www.example.com/Example.pdf',//pdf file path
             
    unsupportedText 'Acrobat Viewer is not Installed',
             
    resizable   true
          
    };                  
          var 
    = new Ext.ux.MediaWindow({  
           
    id            'PDFViewerWin',
           
    bodyStyle    'position:relative; padding:0px;',
           
    width        750,
           
    height        600,
           
    mediaCfg    mConfig,
           
    title        Example Report PDF'
          }).show(); 

  2. #2
    Sencha - Community Support Team hendricd's Avatar
    Join Date
    Aug 2007
    Location
    Long Island, NY USA
    Posts
    5,963
    Vote Rating
    10
    hendricd will become famous soon enough hendricd will become famous soon enough

      0  

    Default


    Quote Originally Posted by rocafreestyler View Post
    Hi,

    I have used the following code within my page to open a PDF, this works fine on both Firefox and Internet Explorer. I can move the window around the screen with no issues. However I do encounter a problem once I click "+" or "-" sign within the pdf reader. Once I have press either of these and then move the mediaWindow around the screen the window blanks and the PDF disappears. This only effects IE not Firefox.

    Has anybody encountered this before. I am running IE Ver 8.0.7600.

    Any help would be greatly appreciated.

    PHP Code:
    var mConfig = { 
             
    mediaType   :'PDF'
             
    url'https://www.example.com/Example.pdf',//pdf file path
             
    unsupportedText 'Acrobat Viewer is not Installed',
             
    resizable   true
          
    };                  
          var 
    = new Ext.ux.MediaWindow({  
           
    id            'PDFViewerWin',
           
    bodyStyle    'position:relative; padding:0px;',
           
    width        750,
           
    height        600,
           
    mediaCfg    mConfig,
           
    title        Example Report PDF'
          }).show(); 
    @rocafreestyler -- Try using the PDFFRAME mediaType profile instead. The IE version of the Acrobat plugin is very finicky when nested directly into the DOM (and all the reflowing going on when an Ext.Window is dragged or resized.)

    Here is a ux.Media demo that renders the PDF both ways.

    Add: I think you'll want that resizable: true defined on the Window itself, yes?
    "be dom-ready..."
    Doug Hendricks

    Maintaining ux: ManagedIFrame, MIF2 (FAQ, Wiki), ux.Media/Flash, AudioEvents, ux.Chart[Fusion,OFC,amChart], ext-basex.js/$JIT, Documentation Site.


    Got Sencha licensing questions? Find out more here.


Thread Participants: 1

Tags for this Thread