[CLOSED] Printing the center region of a viewport

  1. #1

    [CLOSED] Printing the center region of a viewport

    Hi,

    I have a center panel in my viewport that displays a map. I have tried to directly print the map which does not work properly, layers are not shown etc.

    Is there any possibility how I could print the complete panel respectively its content?

    
    <ext:Panel runat="server" Region="Center" ID="mapPanel" Collapsible="false" MarginsSummary="5 5 5 0" >
                    <Content>
                        <div id="map">
                        </div>
                        <div class="chart" data-percent="0"><span id="chartText"></span></div>
                        <div id="flexslider" class="flexslider">
                              <ul id="flexsliderUL" class="slides">
                            </ul>
                        </div>
    
                        <div id="slider">
                        </div>
                    </Content>
                </ext:Panel>
    Last edited by Daniil; May 07, 2013 at 3:45 AM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    A Panel is rendered as a div. Please look at this Stackoverflow question how to print a div.
    http://stackoverflow.com/questions/2...tents-of-a-div
  3. #3
    Hi Daniil,
    thank you for your reply.
    I have tried it this way, I have a problem with the following line, it always returns null

    var DocumentContainer = document.getElementById(div_id);
    I have tried:
    var DocumentContainer = document.getElementById(App.mapPanel);
    and
    var DocumentContainer = document.getElementById(mapPanel);
    I am not able to print DocumentContainer.innerHTML because DocumentContainer is null
    Last edited by Daniil; May 07, 2013 at 3:44 AM.
  4. #4
    I would get it like this.
    App.mapPanel.body.dom.innerHTML

Similar Threads

  1. Replies: 8
    Last Post: Jan 21, 2015, 2:44 PM
  2. Replies: 2
    Last Post: Jun 18, 2012, 6:43 PM
  3. Replies: 5
    Last Post: Mar 22, 2012, 2:12 PM
  4. [CLOSED] Reload a tab content in a center region IFrame
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 7
    Last Post: Jan 22, 2010, 11:45 AM
  5. [CLOSED] Dinamically add Tab from the IFrame Center region
    By ljcorreia in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Feb 23, 2009, 12:37 PM

Tags for this Thread

Posting Permissions