Showing posts with label users. Show all posts
Showing posts with label users. Show all posts

Monday, March 26, 2012

Centering AlwaysVisibleControl?

I'm using an update progress control inside of an always visible control to communicate to users when my application is loading data. I want to center the control on the screen but have seen no way by which to do this. Has anyone figured out a way to position the AVC in the center of the browser screen? Is there a better way to do this?

In the html for your panel you define an outer div with width and height set to 100%, a transparent background and text centered. An inner div is set with a solid background and the top attrib set to 50% or some offset. The inner div will then be centered within the outer div.

Catch the active tab changed event in javascript

Hi,

I have been using the ajax tab control.

I need to catch the activetab changed event of javascript.

I want to do some processing when the users goes to a specific tab.

It would be very helpful if someone can tell me how i can do it.

Cheers

Sohail

Hi,

Well looks like i got how to catch the activetab changed event

the tab container has OnClientActiveTabChanged event.

However i still need to get some way to acces the active index in the javascript so based on it i can do some processing.

Please let me know the soltn

Cheers

Sohail Sayed


Hi Sohail,

You can use the following script to get the index of active tab:


var tc = $find("TabContainer1"); // "TabContainer1" is the client id of the TabContainer control.

var index = tc.get_activeTabIndex();

Hope this helps.


Hi,

Thx i am now able to get the active index