Loading ...
Sorry, an error occurred while loading the content.

Re: [ydn-javascript] Help: display JSP in Tab

Expand Messages
  • Satyam
    Use Tab s dataSrc property to include the file right into the tab. You wouldn t be able to have the included file enclosed in the which you shouldn t
    Message 1 of 4 , Mar 5, 2008
    • 0 Attachment
      Use Tab's dataSrc property to include the file right into the tab.  You wouldn't be able to have the included file enclosed in the <div> which you shouldn't need since the tab contents is already inside a <div>, which you can find reading the contentEl property.
       
      Satyam
      ----- Original Message -----
      From: JD Hatton
      Sent: Wednesday, March 05, 2008 10:20 PM
      Subject: Re: [ydn-javascript] Help: display JSP in Tab

      Sure, but I get nothing in the TAB.
      No errors and no content.

      How would I include a HTML file this way?

      Thanks for any help - Jon


      On Wed, Mar 5, 2008 at 3:16 PM, Satyam <satyam@...> wrote:

      I guess that the <jsp: ... part is something that would be expanded on the server side to whatever MyGoals contains.  The important thing is what actually reaches the browser and the JavaScript interpreter there.  That line seems fine as you show it but the client will receive single quotes (which will close the opening quote of the content) and linefeeds, which are invalid within strings, unless escaped as \n, which is not the case.
       
      Satyam
       
       
       
      ----- Original Message -----
      From: JD Hatton
      Sent: Wednesday, March 05, 2008 9:56 PM
      Subject: [ydn-javascript] Help: display JSP in Tab


      Hi Im trying to display JSP or HTM file in a TAB in TabView as an include.
      It no wokies for me, any ideas?

      Something like this:

      <div id="container"></div>
      <script type="text/javascript">
      (function() {
          var tabView = new YAHOO.widget.TabView();

          tabView.addTab( new YAHOO.widget.Tab({
              label: 'INCLUDE',
              content: '<div id="mygoals" ><jsp:include page="MyGoals.html"></jsp:include></div>',
              active: true
          }));
       

          tabView.appendTo('container');
      })();
      </script>


      No virus found in this incoming message.
      Checked by AVG Free Edition.
      Version: 7.5.516 / Virus Database: 269.21.4/1312 - Release Date: 04/03/2008 21:46


      No virus found in this incoming message.
      Checked by AVG Free Edition.
      Version: 7.5.516 / Virus Database: 269.21.4/1312 - Release Date: 04/03/2008 21:46
    Your message has been successfully submitted and would be delivered to recipients shortly.