<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6653453776487273031</id><updated>2024-09-05T14:57:00.887+05:00</updated><category term="Application Integration"/><category term="MOSS"/><category term="SSO"/><category term="Sharepoint 2007"/><category term="Single Sign On"/><title type='text'>Anis Ahmad&#39;s Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://anisdotnet.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://anisdotnet.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anis Ahmad</name><uri>http://www.blogger.com/profile/03237690855027542200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6653453776487273031.post-6743044351125061849</id><published>2011-03-23T18:38:00.001+05:00</published><updated>2011-03-23T19:17:24.859+05:00</updated><title type='text'>Maintaining Page Scroll Position Using Cookies</title><content type='html'>&lt;div class=&quot;wlWriterHeaderFooter&quot; style=&quot;float:none; margin:0px; padding:4px 0px 4px 0px;&quot;&gt;&lt;iframe src=&quot;http://www.facebook.com/widgets/like.php?href=http://anisdotnet.blogspot.com/2011/03/maintaining-page-scroll-position-using.html&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;border:none; width:450px; height:80px&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;p&gt;Some days ago I had come across with an issue regarding browser scroll position. Although the problem was a little trickier as the page was &lt;/p&gt; &lt;p&gt;including some JQuery expanders as well, but for now I’m just going to tell you how I managed to solve this problem. &lt;/p&gt; &lt;p&gt;As an ASP.NET programmer, I had a some very nice straight options:&lt;/p&gt; &lt;ul&gt; &lt;li&gt;I can use &lt;font size=&quot;1&quot;&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: red; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;maintainScrollPositionOnPostBack&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: blue; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: black; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: blue; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: black; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: blue; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt; &lt;font color=&quot;#444444&quot;&gt;in web.config pages section to maintain scroll position for all pages.&lt;/font&gt;&lt;/span&gt;&lt;/font&gt;&lt;font color=&quot;#000000&quot;&gt; &lt;/font&gt; &lt;li&gt;I can use &lt;font color=&quot;#444444&quot;&gt;&lt;font size=&quot;1&quot;&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: red; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;MaintainScrollPositionOnPostback&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; color: blue; font-size: 11pt&quot; lang=&quot;EN-GB&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;/font&gt; in page declaration for some specific page. &lt;/font&gt; &lt;li&gt;Programmatically set &lt;span style=&quot;font-family: &#39;Calibri&#39;,&#39;sans-serif&#39;; font-size: 11pt&quot;&gt;&lt;span style=&quot;color: black&quot;&gt;&lt;a title=&quot;Page Class&quot; href=&quot;http://msdn2.microsoft.com/dfbt9et1.aspx&quot;&gt;System.Web.UI.Page&lt;/a&gt;.MaintainScrollPositionOnPostBack = &lt;/span&gt;&lt;span style=&quot;color: blue&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: black&quot;&gt;;&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;But I prefer to write this post for JQuery to make it available for other web technologies as well. So let’s start then :).&lt;/p&gt; &lt;p&gt;The solution can be broken down into two simple tasks:&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Save scroll position whenever user scrolls the page in a container like cookies.  &lt;li&gt;Set the scroll position when page is loaded again by reading the same container.&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;We can determine the user scroll action by simply registering the &lt;font face=&quot;Courier New&quot;&gt;scroll&lt;/font&gt; event of the javascript &lt;font face=&quot;Courier New&quot;&gt;window&lt;/font&gt; object when document ready event is fired i.e.&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;$(document).ready(&lt;span style=&quot;color: blue&quot;&gt;function&lt;/span&gt;(){&lt;br /&gt;    $(window).scroll(SaveScrollPosition);&lt;br /&gt;});&lt;/pre&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Here is the definition for &lt;font face=&quot;Courier New&quot;&gt;SaveScrollPosition&lt;/font&gt; function:&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;&lt;span style=&quot;color: blue&quot;&gt;function &lt;/span&gt;SaveScrollPosition()&lt;br /&gt;{&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;var &lt;/span&gt;target = &lt;span style=&quot;color: maroon&quot;&gt;&#39;scrollTop&#39;&lt;/span&gt;;&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;var &lt;/span&gt;container = $(window);&lt;br /&gt;    $.cookie(target, container.scrollTop, { expires: 2 });&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;a href=&quot;http://11011.net/software/vspaste&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;Here I’m planning to maintain only the vertical scroll position that’s why I’ve stored only &lt;font face=&quot;Courier New&quot;&gt;scrollTop&lt;/font&gt; property of the container. For cookie management I’ve used the &lt;a href=&quot;http://code.google.com/p/jqueryjs/source/browse/trunk/plugins/cookie/jquery.cookie.js?r=3931&amp;amp;spec=svn3931&quot; target=&quot;_blank&quot;&gt;JQuery cookie plug-in written by Klaus Hartl&lt;/a&gt;.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Now let’s come to the second task of setting the scroll position upon page load. We can use the same document ready event written earlier for this task as follows:&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;$(document).ready(&lt;span style=&quot;color: blue&quot;&gt;function&lt;/span&gt;(){&lt;br /&gt;    $(window).scroll(SaveScrollPosition);&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;var &lt;/span&gt;target = &lt;span style=&quot;color: maroon&quot;&gt;&#39;scrollTop&#39;&lt;/span&gt;;&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;var &lt;/span&gt;container = $(window);&lt;br /&gt;    &lt;span style=&quot;color: blue&quot;&gt;if&lt;/span&gt;(&lt;span style=&quot;color: blue&quot;&gt;typeof &lt;/span&gt;$.cookie(target) != &lt;span style=&quot;color: maroon&quot;&gt;&#39;undefined&#39;&lt;/span&gt;)&lt;br /&gt;        container.scrollTop = $.cookie(target);&lt;br /&gt;});&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;p&gt;I’ve used the same cookie name &lt;span style=&quot;color: maroon&quot;&gt;&#39;scrollTop&#39;&lt;/span&gt; as used in &lt;font face=&quot;Courier New&quot;&gt;SaveScrollPosition&lt;/font&gt; to retrieve cookie value and have set the &lt;font face=&quot;Courier New&quot;&gt;scrollTop&lt;/font&gt; property of the container with this value.&lt;/p&gt;&lt;br /&gt;&lt;p&gt;Simple! Isn’t it???&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Blogger Labels: &lt;a href=&quot;http://anisdotnet.blogspot.com/search/label/Web&quot; rel=&quot;Tag&quot;&gt;Web&lt;/a&gt;,&lt;a href=&quot;http://anisdotnet.blogspot.com/search/label/ASP.NET&quot; rel=&quot;Tag&quot;&gt;ASP.NET&lt;/a&gt;,&lt;a href=&quot;http://anisdotnet.blogspot.com/search/label/Scroll&quot; rel=&quot;Tag&quot;&gt;Scroll&lt;/a&gt;,&lt;a href=&quot;http://anisdotnet.blogspot.com/search/label/Cookies&quot; rel=&quot;Tag&quot;&gt;Cookies&lt;/a&gt;,&lt;a href=&quot;http://anisdotnet.blogspot.com/search/label/JQuery&quot; rel=&quot;Tag&quot;&gt;JQuery&lt;/a&gt;&lt;br&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;div style=&quot;padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px&quot; id=&quot;scid:0767317B-992E-4b12-91E0-4F059A8CECA8:04130f0a-d13b-414b-9c03-ce79b71a487b&quot; class=&quot;wlWriterSmartContent&quot;&gt;Technorati Tags: &lt;a href=&quot;http://technorati.com/tags/Web&quot; rel=&quot;tag&quot;&gt;Web&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/JQuery&quot; rel=&quot;tag&quot;&gt;JQuery&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Cookie&quot; rel=&quot;tag&quot;&gt;Cookie&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/Scroll&quot; rel=&quot;tag&quot;&gt;Scroll&lt;/a&gt;,&lt;a href=&quot;http://technorati.com/tags/ASP.NET&quot; rel=&quot;tag&quot;&gt;ASP.NET&lt;/a&gt;&lt;/div&gt;  </content><link rel='replies' type='application/atom+xml' href='http://anisdotnet.blogspot.com/feeds/6743044351125061849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anisdotnet.blogspot.com/2011/03/maintaining-page-scroll-position-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/6743044351125061849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/6743044351125061849'/><link rel='alternate' type='text/html' href='http://anisdotnet.blogspot.com/2011/03/maintaining-page-scroll-position-using.html' title='Maintaining Page Scroll Position Using Cookies'/><author><name>Anis Ahmad</name><uri>http://www.blogger.com/profile/03237690855027542200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6653453776487273031.post-8577086638276639769</id><published>2011-03-10T00:22:00.001+05:00</published><updated>2011-03-10T00:22:20.236+05:00</updated><title type='text'>Same bookmarks on all browsers – Cool Xmarks</title><content type='html'>&lt;p&gt;Have you ever been in trouble to make same bookmarks on all browsers?&lt;/p&gt; &lt;p&gt;Have you ever done the following like me?&lt;/p&gt; &lt;ol&gt; &lt;li&gt;Exporting bookmarks from one browser in a compatible format (HTML etc)&lt;/li&gt; &lt;li&gt;Importing that compatible format into another browser&lt;/li&gt; &lt;li&gt;Removing any duplicated bookmarks …&lt;/li&gt; &lt;li&gt;Repeating step 1 to 3 for other browsers&lt;/li&gt;&lt;/ol&gt; &lt;p&gt;Some browsers even have made this tedious process easier by directly providing a way to import bookmarks from other browsers on that computer. Even then it is quite a hassle to synchronize bookmarks on all the browsers on a computer.&lt;/p&gt; &lt;p&gt;Recently I’ve come up with a nice tool to do all the bookmarks synchronization automatically for me at the cost of only two clicks. &lt;/p&gt; &lt;p&gt;&lt;a href=&quot;http://www.xmarks.com&quot; target=&quot;_blank&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px&quot; title=&quot;Xmarks&quot; border=&quot;0&quot; alt=&quot;Xmarks&quot; src=&quot;http://lh5.ggpht.com/_vbvklB8_ZLo/TXfTamDrvmI/AAAAAAAAAHE/0mDHg9J0iAU/Xmarks%5B3%5D.png?imgmax=800&quot; width=&quot;244&quot; height=&quot;166&quot;&gt;&lt;/a&gt;&lt;/p&gt; &lt;p&gt;Yes it’s &lt;a href=&quot;http://www.xmarks.com&quot; target=&quot;_blank&quot;&gt;http://www.xmarks.com&lt;/a&gt;. With Xmarks you can not only keep the backup of your bookmarks on Xmarks server but can also sync across different browsers too including Firefox, Chrome, Internet Explorer and Safari (Mac OS). Moreover it provides a smarter search feature which highlights the top sites in search results based on how other users have bookmarked and rated them.&lt;/p&gt; &lt;p&gt;All you have to do is to &lt;a href=&quot;http://download.xmarks.com/download/all&quot; target=&quot;_blank&quot;&gt;download&lt;/a&gt; and install Xmarks tiny application on your computer in use and create a free account on &lt;a href=&quot;http://www.xmarks.com&quot; target=&quot;_blank&quot;&gt;http://www.xmarks.com&lt;/a&gt;. &lt;/p&gt;  </content><link rel='replies' type='application/atom+xml' href='http://anisdotnet.blogspot.com/feeds/8577086638276639769/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anisdotnet.blogspot.com/2011/03/same-bookmarks-on-all-browsers-cool.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/8577086638276639769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/8577086638276639769'/><link rel='alternate' type='text/html' href='http://anisdotnet.blogspot.com/2011/03/same-bookmarks-on-all-browsers-cool.html' title='Same bookmarks on all browsers – Cool Xmarks'/><author><name>Anis Ahmad</name><uri>http://www.blogger.com/profile/03237690855027542200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://lh5.ggpht.com/_vbvklB8_ZLo/TXfTamDrvmI/AAAAAAAAAHE/0mDHg9J0iAU/s72-c/Xmarks%5B3%5D.png?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6653453776487273031.post-6360630304076022800</id><published>2009-02-11T17:32:00.001+05:00</published><updated>2009-02-11T17:35:54.929+05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Application Integration"/><category scheme="http://www.blogger.com/atom/ns#" term="MOSS"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="Single Sign On"/><category scheme="http://www.blogger.com/atom/ns#" term="SSO"/><title type='text'>Sharepoint 2007 SSO</title><content type='html'>Microsoft Sharepoint 2007 Single Sign On service provides an excellent platform to integrate different enterprise applications. Whether its a CRM system, an HR database or any other enterprise application, you can use credential store to log into these outside applications and can access all the required information to be displayed.</content><link rel='replies' type='application/atom+xml' href='http://anisdotnet.blogspot.com/feeds/6360630304076022800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://anisdotnet.blogspot.com/2009/02/sharepoint-2007-sso.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/6360630304076022800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6653453776487273031/posts/default/6360630304076022800'/><link rel='alternate' type='text/html' href='http://anisdotnet.blogspot.com/2009/02/sharepoint-2007-sso.html' title='Sharepoint 2007 SSO'/><author><name>Anis Ahmad</name><uri>http://www.blogger.com/profile/03237690855027542200</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>