Showing posts with label scroll. Show all posts
Showing posts with label scroll. Show all posts

Saturday, March 24, 2012

Ajax Timer Control Refresh Problem Only In Production

Hi All,

I had a page, which display long content, i had a scroll bar for the page. I had a updatepanel in the page, with ajax timer control, this timer will raise event timer_tick for every 3000 milli seconds, then i will query the database and get some data and display in the updatepanel, now this updatepanel is location at the bottom, when i am moving cursor to the top of the page, my cursor position is coming down to the updatepanel even though when i am moving the mouse to the top of the page, through scroll bar of the page, it is not going to the top, don't why it is happening only in production environment, can anyone kindly please help on this issue.

Thanks & Regards,

Karthikeyan.

Hi Karthikeyan,

Do you set like this:

<%@. Page Language="C#"MaintainScrollPositionOnPostback="true" %>

Hope this help.

Regards,

AJAX Tabs

How would I access the ajax tab index in javascript?

How would I add an auto scroll on the tab menus, so that when the page loads it loops through each tab in a loop?

Hi,

You can manipulate the tabContainer object on client side by finding a reference to it.

For instance:

var tc = $find("ClientIDOfTheTabContainer");

tc.get_tabIndex();

For more information about the functions and properties that tabContainer exposes, please refer to Tabs.js in the source code of AjaxControlToolkit.


I tried to accessing the tabcontainer using your example and it didn't work. I tried to access it adding the script block inside the body and in the head tag and neither worked. Do I have to register the script block with the page?

var tc = $find("TabContainer1_cllTabControl_7Tab_0");
alert(tc);

var tc = $find("TabContainer1");
alert(tc);


try this;

var tabContainer = $get('<%=TabContainer1.ClientID%>')