This is the code I have in the body part of my /works/ page. I would like to generate tabs for each one of the child pages, and show the "body" part of the /works/print/ page in the works id by default. Then have each one of the tabs refresh the works id with it's content.
The code below works except for one small problem: it wants to put the entire html page into the works id. I only want the content part. In the link I cannot use double quotes because it breaks the tag. I would like to be able to specify <r:content part="body" /> in the link where the <r:url /> tag is. Can anybody help me out with the correct syntax here to refresh the works id with the body part of the child pages? ... <div id="works_nav"> <ul> <r:children:each> <li><a href="javascript:void loadTab( '<r:url />' )"><r:breadcrumb /></a></li> </r:children:each> </ul> </div> <div id="works"> </div> <script> function loadTab( tab ) { new Ajax.Updater( 'works', tab, { method: 'get' } ); } loadTab( '/works/print/' ); </script> ... Thanks, Nate _______________________________________________ Radiant mailing list Post: Radiant@radiantcms.org Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant