If your web site uses local storage, and when user does private browsing your website, it might break. The reason is local storage will not be able to store anything if phone is using private browsing.
Suggest to use Modernizr or below script to do detect. (Try-catch might also work?)
if (!!window.localStorage)
{
localStorage.setItem(key, val);
};
Monday, April 14, 2014
Friday, April 11, 2014
SVN trunk, branches and tags
- A trunk in SVN is main development area, where major development happens.
- A branch in SVN is sub development area where parallel development on different functionalities happens. After completion of a functionality, a branch is usually merged back into trunk.
- A tag in SVN is read only copy of source code from branch or tag at any point of time. tag is mostly used to create a copy of released source code for restore and backup.
Read more: http://javarevisited.blogspot.com/2013/04/difference-between-trunk-tags-and-branch-svn-cvs-git-scm-subversion.html
The practice we are using in daily work is
1. Work on trunk and commit for main release
2. Branch out from released tag for EP/SP
3. Tag for each main release
- A branch in SVN is sub development area where parallel development on different functionalities happens. After completion of a functionality, a branch is usually merged back into trunk.
- A tag in SVN is read only copy of source code from branch or tag at any point of time. tag is mostly used to create a copy of released source code for restore and backup.
Read more: http://javarevisited.blogspot.com/2013/04/difference-between-trunk-tags-and-branch-svn-cvs-git-scm-subversion.html
The practice we are using in daily work is
1. Work on trunk and commit for main release
2. Branch out from released tag for EP/SP
3. Tag for each main release
Thursday, April 10, 2014
base href needs forward slash at the end
HTML document or iframe head section can have this tag to specify a default URL and a default target for all links on a page:
<base href="URL" />
<base href="http://www.w3schools.com/images/" target="_blank" />
href for relative paths
target for click link behavior
The URL needs forward slash (/) at the end, otherwise it will not work as expected.
http://www.w3schools.com/tags/tag_base.asp
<base href="URL" />
<base href="http://www.w3schools.com/images/" target="_blank" />
href for relative paths
target for click link behavior
The URL needs forward slash (/) at the end, otherwise it will not work as expected.
http://www.w3schools.com/tags/tag_base.asp
Subscribe to:
Posts (Atom)