Mrunmaishinde 0 Newbie Poster

hi ... frnds

i am confused bcoz of j-script , i have used j-script code to hold the position of selected row of gridview . the gridview is supports to scrolling by

 <div id="grdWithScroll" style="overflow :scroll ; height:200px ; width:100%" onscroll="SetDivPosition()">

and j-script code is

 <script type="text/javascript">
  window.onload = function(){
    var strCook = document.cookie;
    if(strCook.indexOf("!~")!=0){
      var intS = strCook.indexOf("!~");
      var intE = strCook.indexOf("~!");
      var strPos = strCook.substring(intS+2,intE);
      document.getElementById("grdWithScroll").scrollTop = strPos;
    }
  }
  function SetDivPosition(){
    var intY = document.getElementById("grdWithScroll").scrollTop;
    document.title = intY;
    document.cookie = "yPos=!~" + intY + "~!";
  }
</script>
  <script type="javascript">
   window.scrollBy(100,100);

  function foo(){
   alert("ddd");
   if(grdWithScroll != null) alert(grdWithScroll.scrollTop);
  }
</script>

this script is not supports to tab container of ajax.

plz help....
thanks