CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Dynamic Tab Name (YUI Tabview)

Print topic Send  topic

Author Message
klipkop

Posts: 16
Posted: 09/23/2008, 7:36 AM

Can anybody point me in the right direction - My Java knowledge is limited to 3 cups a day....:

I am using YUI TabView tabs to create 3 tabs with panels in them. Problem is that the Caption (Tabname) is hard coded using the "features" > "Caption" field. In the Java script of the html I can see the following:

//YahooTabbedView Start @70-B717E189 function   
Panel1YahooTabbedView_start() {   
YahooTabbedView = new YAHOO.widget.TabView();  
 var Panel2_tab = new YAHOO.widget.Tab({   
label: "Condition 2",   
         active: true,  
         contentEl: document.getElementById  
("Panel1Panel2")

I want the label: "Condition2" to get its value from either a control or a variable that I declare.

I see the API docs on the YUI pages have a configuration attribute called :

labelEl (HTMLElement) The element that contains the Tab's label.

Is this something I can use?

Will appreciate any answer..

Andre
View profile  Send private message
Oper


Posts: 1195
Posted: 09/24/2008, 9:17 PM

Use Insert Attribute in your HTML

havent used or tested but idont see why wont work.

Give a try.
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)

http://www.PremiumWebTemplate.com
Affiliation Web Site Templates

Please do backup first
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.