2 messages in com.googlegroups.google-mashup-editorHow to make a dynamic TAB-title
FromSent OnAttachments
Mirage25 Jun 2007 17:35 
Jason26 Jun 2007 11:02 
Subject:How to make a dynamic TAB-title
From:Mirage (mira@googlemail.com)
Date:06/25/2007 05:35:10 PM
List:com.googlegroups.google-mashup-editor

Hi everybody

I have 3 tabs. Within each tab a list. I want to have the #entries added to the tab-title.

Assuming the mashup coding very below.

The tabs schould look like e.g.: (World 7) (Technology 17) (Science 26)

Any clue how to implement that?

<script> function onRefreshList(){ //Get the section var myData = google.mashups.getObjectById("sectionWorld"); //does not work var titl = myData.setTitle("Wordl"+"7"); alert(titl); } </script>

thx a ton in advance Jan

<gm:page title="diggTabs" > <gm:tabs target="myContainer"/> <gm:container id="myContainer" style="padding:3px;border:1px solid #369;width:600px;"> <gm:section id="sectionWorld" title="World"> <gm:list id="World" template="myTemplate" data="http:// www.digg.com/rss/containerworld_business.xml" pageSize="10"/> </gm:section> <gm:section id="sectionTech" title="Technology"> <gm:list id="Technology" template="myTemplate" data="http:// www.digg.com/rss/containertechnology.xml" pageSize="10"/> </gm:section> <gm:section id="sectionScience" title="Science"> <gm:list id="Science" template="myTemplate" data="http:// www.digg.com/rss/containerscience.xml" pageSize="10"/> </gm:section> </gm:container> <gm:template id="myTemplate"> <table> <tbody repeat="true"> <tr> <td><h3><gm:text ref="atom:title"/></h3></td> </tr> <tr> <td><gm:toggle/><gm:text ref="atom:summary" class="gm- toggled"/></td> </tr> </tbody> </table> </gm:template> </gm:page>