Skip navigation
Currently Being Moderated

Html panel2 inside html panel?

Aug 21, 2012 11:40 PM

Tags: #html #spry #panel

I would like to place an Html panel(2) inside another Html panel(1).  What i get is "TypeError: hpanel2 is undefined. I have evalScript: both true and false. How do I defined so that is goes inside the other panel?  FYI  The first html panel in nested in index, so to try and be clear the index page holds Html panel(1) with onclick will call Html panel(2) inside of (1). Help! please

 

 

//***********************INDEX PAGE*************************************

 

<body>

<?php include_once "header_template.php"; ?>

 

<div class="Q_body">

  <table>

    <tr>

      <td valign="top">

        <?php include_once "cover.php"; ?>

       </td>

    </tr>

      </table>

</div>

<?php include_once "footer_template.php"; ?>

!--SCRIPTS-->

    <script language="JavaScript" type="text/javascript">

var hpanel = new Spry.Widget.HTMLPanel("intro", { evalScripts: false });

var hpanel2 = new Spry.Widget.HTMLPanel("intro2", { evalScripts: false });</script>

 

<!--SCRIPTS-->

 

</body>

 

*******HTML Panel(1)************************************************************* *************************

<div id="leftcolumn">

  <div class="indentmenu">

    <ul>

      <li><a href="JSPmenuTest.html" onClick="hpanel.loadContent(this.href); return false;" >PROFILE </a></li>

</ul>

  </div>

 

<div class="HTMLPanel" id="intro">

<span class="HTMLPanelLoadingContent">

 

        <div class="HTMLPanelLoadingContent">

          <div></div>

          <div class="HTMLPanelErrorContent"></div>

        </div>

    </div>

<!--LeftColumn div-->   

</div>

<!--SCRIPTS-->

    <script language="JavaScript" type="text/javascript">

var hpanel = new Spry.Widget.HTMLPanel("intro", { evalScripts: fasle });

</script>

<!--SCRIPTS-->

 

************HTML PANEL (2) ie JSPmenuTest.html *******************************************************

<div class="HTMLPanel" id="intro2">

<span class="HTMLPanelLoadingContent">

  <object > swf, jpg

</object>

                <!--<![endif]-->

        </object>

        <div class="HTMLPanelLoadingContent">

          <div></div>

          <div class="HTMLPanelErrorContent"></div>

        </div>

    </div>

<div class="indentmenu">

    <ul>

      <li><a href="/HTML/PROFILE.html" onClick="hpanel2.loadContent(this.href); return true;" >junk </a></li>

    </ul>

  </div>

<!--SCRIPTS-->

    <script language="JavaScript" type="text/javascript">

var hpanel2 = new Spry.Widget.HTMLPanel("intro2", { evalScripts: true });

</script>

<!--SCRIPTS-->

 

cheers

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points