[ 4 posts ]

Harsha

  • Username: harsha_ahs
  • Joined: Tue Jun 26, 2012 8:51 am
  • Posts: 3
  • Offline
  • Profile
Tags:

Event when Tabview has completed loading

Post Posted: Tue Jun 26, 2012 8:59 am
+0-
Hi,

Is there a way to fire a javascript function when the tabview has finished loading?

The below code works when the tab is clicked. So similarly what event I need to register to fire when the tab has finished loading?

var myTabs = new YAHOO.widget.TabView('demo');
var tab0 = myTabs.getTab(0);

function handleClick(e) {
alert(e.target);
}

tab0.addListener('click', handleClick);

Tx
H

Alberto Santini

YUI Contributor

  • Offline
  • Profile

Re: Event when Tabview has completed loading

Post Posted: Tue Jun 26, 2012 10:17 am
+0-
Hello Harsha.

You may give a look at tabview events:
http://yuilibrary.com/yui/docs/tabview/#events

render event might be useful.

Hope that helps,
IceBox

Juan Ignacio Dopazo

YUI Contributor

  • Username: jdopazo
  • Joined: Fri Oct 02, 2009 5:39 am
  • Posts: 620
  • Location: Buenos Aires, Argentina
  • Twitter: juandopazo
  • GitHub: juandopazo
  • Gists: juandopazo
  • Offline
  • Profile

Re: Event when Tabview has completed loading

Post Posted: Tue Jun 26, 2012 6:04 pm
+0-
Except he seems to be talking about YUI 2 :P

Harsha

  • Username: harsha_ahs
  • Joined: Tue Jun 26, 2012 8:51 am
  • Posts: 3
  • Offline
  • Profile

Re: Event when Tabview has completed loading

Post Posted: Wed Jun 27, 2012 5:25 am
+0-
Whoops.. Looks like I posted in the wrong Forum.

Anyways thanks guys for responding to the post.Will repost in YUI2
  [ 4 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum