panel loader + viewerjs

  1. #1

    panel loader + viewerjs


    I have a panel with a loader that I need to load different PDF's in using viewerjs.
    It all works fine untill I have to pass parameters to viewerjs..

     <ext:Panel runat="server" Region="Center" ID="panel1">
            <Loader runat="server" AutoLoad="false" Mode="Frame">
              <LoadMask ShowMask="false"></LoadMask>
    loader.load({ url: './js/#../js/1.pdf', params: { zoom: 'page-width' } });
    According to viewerjs you can pass parameters to the page like this(this will set the zoom to full page):
    However when I do it in the url is:
  2. #2
    Hello @ampathdev!

    Well, if you have to imbue a parameter inside the text string I don't see much option other than wire it in!

    Like this:
    loader.load({ url: './js/?zoom=page-width#../js/1.pdf' });
    Let us know if this is not an option or does not work for you!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. [CLOSED] Panel Loader 404 when IIS is down
    By Geovision in forum 3.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 10, 2016, 2:06 PM
  2. Replies: 1
    Last Post: Aug 12, 2015, 11:43 AM
  3. [CLOSED] MVC - Panel - Loader
    By thchuong in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 15, 2014, 4:09 PM
  4. Panel Loader example in Razor
    By basder in forum 2.x Help
    Replies: 4
    Last Post: Mar 24, 2014, 3:34 PM
  5. [CLOSED] LoadMask on Panel without Loader
    By Patrick_G in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 19, 2013, 2:27 AM

Posting Permissions