tiles tags run on server side. you cannot use it in javascript function.

itay


On 12/13/07, Leena Borle <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I have just started tiles-2 development on Struts2. I have this questions,
> I want to insert attribute after the page is loaded, is it possible ?
> What I mean is, I have a classic layout with header, footer,menu and
> primary contents. I want  load header, footer and menu first and when page
> is loaded, load Primary contents. Because some of the pages take a while
> to
> load, by then all my page displays is blank.
>
> Here is what I want to do,
>
> <script = "text/javascript>
>   functions addPrimaryContents() {
>           Somehow do this ...            <tiles:insertAttribute
> name='primarycontents' />
> }
> </script>
>
> <body onload="addPrimaryContent()>
> <div id="container">
>
>    <!--navigation bar-->
>    <tiles:insertAttribute name='header'/>
>
>    <div id="sidebar_left">
>            <h4>User Menu</h4>
>            <tiles:insertAttribute name='menucontents'/>
>    </div> <!-- End side bar -->
>
>    <div id="right_content">
>         <!-- insert primary contents dynamically --?
>
>
>    </div> <!-- End right content -->
>
> </div> <!-- End Container -->
> <br />
>
> <tiles:insertAttribute name='footer'/>
>
> </body>
>
> Thanks,
> Leena
>

Reply via email to