Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   regarding tabstrip (http://www.velocityreviews.com/forums/t771910-regarding-tabstrip.html)

shyne 12-01-2003 06:54 AM

regarding tabstrip
 
hi all,
Tabstrip targetid is MultiPage2.
there are 3 pages in multipage
the cursor should park on first field of respective page
when the selection index is changed.
this is working fine , if we keep some alert box in the
onselectionindexchanged method , other wise it is not
working.
the code:
function selctionIndexChanged()
{
if(MultiPage2.selectedIndex==1)
{
document.form1.TxtAdd1.focus();
}
else if(MultiPage2.selectedIndex==2)
{
alert(MultiPage2.selectedIndex);
document.form1.TxtSpouse.focus();
}
else
{
alert(MultiPage2.selectedIndex);
document.form1.TxtEmpCode.focus();
}

}
when we click on 0 or 2 page it is working fine because of
alert box, for 1st page it is not working.
i want the cursor to park on first fields of respective
pages without alert box.
plz need help.


All times are GMT. The time now is 09:45 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.