<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Maintain Scroll Position of DIV using JavaScript &#8211; ASP.NET 2.0</title>
	<atom:link href="http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/feed" rel="self" type="application/rss+xml" />
	<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20</link>
	<description>Sharing our knowledge</description>
	<lastBuildDate>Thu, 19 Jan 2012 06:22:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: dINESH</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-323513</link>
		<dc:creator>dINESH</dc:creator>
		<pubDate>Wed, 17 Aug 2011 13:25:40 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-323513</guid>
		<description>Great.
Thanks.</description>
		<content:encoded><![CDATA[<p>Great.<br />
Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abhijeet Khake</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-302243</link>
		<dc:creator>Abhijeet Khake</dc:creator>
		<pubDate>Mon, 16 May 2011 12:32:19 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-302243</guid>
		<description>Hello, Nice post !

problem while using dynamically created grid on every postback, i am using below code to create scrollable  div 

http://www.aspsnippets.com/Articles/Dynamically-
freeze-ASP.Net-Gridview-header-using-JavaScript.aspx

any idea how to use with this

abhijeet</description>
		<content:encoded><![CDATA[<p>Hello, Nice post !</p>
<p>problem while using dynamically created grid on every postback, i am using below code to create scrollable  div </p>
<p><a href="http://www.aspsnippets.com/Articles/Dynamically-" rel="nofollow">http://www.aspsnippets.com/Articles/Dynamically-</a><br />
freeze-ASP.Net-Gridview-header-using-JavaScript.aspx</p>
<p>any idea how to use with this</p>
<p>abhijeet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vikas</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-243339</link>
		<dc:creator>vikas</dc:creator>
		<pubDate>Tue, 10 Aug 2010 21:19:30 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-243339</guid>
		<description>thanks buddy it worked for me. if you have problem with the cookies on the client browser you can use hidden field....</description>
		<content:encoded><![CDATA[<p>thanks buddy it worked for me. if you have problem with the cookies on the client browser you can use hidden field&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martin</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-227833</link>
		<dc:creator>martin</dc:creator>
		<pubDate>Mon, 26 Apr 2010 03:27:35 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-227833</guid>
		<description>what i did is this:
window.onload = function(){
var strCook = document.cookie;
var intS= strCook.indexOf(&quot;!~&quot;);
var intE= strCook.indexOf(&quot;~!&quot;);
var intS2=strCook.indexOf(&quot;&#124;^&quot;);
var intE2=strCook.indexOf(&quot;^&#124;&quot;);
var strPos= strCook.substring(intS+2,intE);
var strPos2= strCook.substring(intS2+2,intE2);
          document.getElementById(&quot;Div1&quot;).scrollTop = strPos;
          document.getElementById(&quot;Div2&quot;).scrollTop = strPos2;
        }
function SetDivPosition(){
var intY = document.getElementById(&quot;Div1&quot;).scrollTop;
document.title = intY;
document.cookie = &quot;yPos=!~&quot; + intY + &quot;~!&quot;;        
      }    
function SetDivPosition2(){
var intY2 = document.getElementById(&quot;Div2&quot;).scrollTop;
document.title = intY2;
document.cookie = &quot;yPos=&#124;^&quot; + intY2 + &quot;^&#124;&quot;;
      }

i could only see that Div1 works, but not Div2, do you know what went wrong huh, appreciate someone can help here</description>
		<content:encoded><![CDATA[<p>what i did is this:<br />
window.onload = function(){<br />
var strCook = document.cookie;<br />
var intS= strCook.indexOf(&#8220;!~&#8221;);<br />
var intE= strCook.indexOf(&#8220;~!&#8221;);<br />
var intS2=strCook.indexOf(&#8220;|^&#8221;);<br />
var intE2=strCook.indexOf(&#8220;^|&#8221;);<br />
var strPos= strCook.substring(intS+2,intE);<br />
var strPos2= strCook.substring(intS2+2,intE2);<br />
          document.getElementById(&#8220;Div1&#8243;).scrollTop = strPos;<br />
          document.getElementById(&#8220;Div2&#8243;).scrollTop = strPos2;<br />
        }<br />
function SetDivPosition(){<br />
var intY = document.getElementById(&#8220;Div1&#8243;).scrollTop;<br />
document.title = intY;<br />
document.cookie = &#8220;yPos=!~&#8221; + intY + &#8220;~!&#8221;;<br />
      }<br />
function SetDivPosition2(){<br />
var intY2 = document.getElementById(&#8220;Div2&#8243;).scrollTop;<br />
document.title = intY2;<br />
document.cookie = &#8220;yPos=|^&#8221; + intY2 + &#8220;^|&#8221;;<br />
      }</p>
<p>i could only see that Div1 works, but not Div2, do you know what went wrong huh, appreciate someone can help here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: martin</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-227825</link>
		<dc:creator>martin</dc:creator>
		<pubDate>Mon, 26 Apr 2010 02:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-227825</guid>
		<description>nice, but let&#039;s say if i have a few div in a page which i would like to retain their different positions, how to handle/do it then?</description>
		<content:encoded><![CDATA[<p>nice, but let&#8217;s say if i have a few div in a page which i would like to retain their different positions, how to handle/do it then?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: GeronimoRumplestiltskin</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-212860</link>
		<dc:creator>GeronimoRumplestiltskin</dc:creator>
		<pubDate>Tue, 16 Feb 2010 21:51:42 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-212860</guid>
		<description>Thanks, man.  You&#039;re a life-saver.</description>
		<content:encoded><![CDATA[<p>Thanks, man.  You&#8217;re a life-saver.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: soumiek ranjan chakravarty</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-210894</link>
		<dc:creator>soumiek ranjan chakravarty</dc:creator>
		<pubDate>Mon, 01 Feb 2010 12:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-210894</guid>
		<description>This cookie code for maintaining the div scroll has worked for me thanx for that, but this code won&#039;t be working if cookies are disabled right? or will it?</description>
		<content:encoded><![CDATA[<p>This cookie code for maintaining the div scroll has worked for me thanx for that, but this code won&#8217;t be working if cookies are disabled right? or will it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adil Hafiz</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-207940</link>
		<dc:creator>Adil Hafiz</dc:creator>
		<pubDate>Fri, 25 Dec 2009 18:13:11 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-207940</guid>
		<description>great article.....but what if the user disables cookies in his/her browser????think about it!!!!!!</description>
		<content:encoded><![CDATA[<p>great article&#8230;..but what if the user disables cookies in his/her browser????think about it!!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tsloan</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-204283</link>
		<dc:creator>tsloan</dc:creator>
		<pubDate>Fri, 13 Nov 2009 18:14:40 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-204283</guid>
		<description>If you are having issues deleting and recreating the cookie during page load,

Use this within the (if !IsPostBack)


Response.Cookies.Remove(&quot;cookie1&quot;);

Response.Cookies.Add(new HttpCookie(&quot;cookie1&quot;, &quot;Scrollbar State&quot;));</description>
		<content:encoded><![CDATA[<p>If you are having issues deleting and recreating the cookie during page load,</p>
<p>Use this within the (if !IsPostBack)</p>
<p>Response.Cookies.Remove(&#8220;cookie1&#8243;);</p>
<p>Response.Cookies.Add(new HttpCookie(&#8220;cookie1&#8243;, &#8220;Scrollbar State&#8221;));</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Stringer</title>
		<link>http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20/comment-page-3#comment-192865</link>
		<dc:creator>Andy Stringer</dc:creator>
		<pubDate>Thu, 20 Aug 2009 22:10:20 +0000</pubDate>
		<guid isPermaLink="false">http://michaelsync.net/2006/06/30/maintain-scroll-position-of-div-using-javascript-aspnet-20#comment-192865</guid>
		<description>Perfect! Thanks for posting your code. Make sure to call SetDivPosition in your div.  I did it in my Panel like this:

</description>
		<content:encoded><![CDATA[<p>Perfect! Thanks for posting your code. Make sure to call SetDivPosition in your div.  I did it in my Panel like this:</p>
]]></content:encoded>
	</item>
</channel>
</rss>

