Hi all,
I am currently struggling to find the 'right' way to implement
tabulators and the respective update of the content on the tabulator
pages.
like:

| *Tab1* | Tab2 | Tab3 |          | Tab1 | *Tab2* | Tab3 |
| Tab1 | Tab2 | *Tab3* |
---------------------------------
---------------------------------
---------------------------------
Content of Tab1                    Content of
Tab2                         Content of Tab3
---------------------------------
---------------------------------
---------------------------------

I assume it is more performant to let the client (Browser) just re-
render the content below the tabulators instead of re-rendering the
whole page, so I'd like only to update the content of the <div>
section below the tab.
There are soooo many proposals/solutions available in the web to do
this, but I feel none of them is really the best way to do this with
symphony.
My current approach is, to have below the tabulators a <div> section
which includes a component.

<ul class="tabulators>
<li> <a href=".....">Tab1 </a></li>
<li> <a href=".....">Tab2 </a></li>
<li> <a href=".....">Tab3 </a></li>
</ul>
<div id="tabContent">
  <?php include_component(....); ?>
</div>

To change to content of the div I am using a simple javascrip which is
called from the link in 'href' of a Tab.
function changeContent(divName, newContent)
{
document.getElementById(divName).innerHTML=newContent;
}

The problem is, what do I pass for 'newContent'? Just passing the
adapted '<?php include_component(....); ?> doesn't do the work. What I
would need is the rendered component.
So, is there a way to get the redered result for a component, so
instead 'include_component' something like 'render_component'? in
symphony?
Is probably the Template Component introduced here 'http://
components.symfony-project.org/templating/trunk/book/02-Templating'
the solution?

Or am I propbably thinking in the wrong direction and it's much
simpler with symphony?

If somebody could direct my thinking into the right direction I would
be very thankful.

With best regards,
Lutz


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to