Archive for December, 2010

Dynamically shortened Text with “Show More” link using jQuery

Dynamically shortened Text with
Facebook user updates has a great functionality. If the comment text is larger than few characters, the extra words are hide and a show more link is presented to user. This way you can keep long text out of the view to user and stop the cluttering of page. Also interested users can click on more ...
Tags: , ,

Password Protect your webpages using htaccess

Password Protect your webpages using htaccess
Recently a serious security flaw was discovered on one of my webpage where a folder which was intended to be accessed just by admin was open for access to anyone. I somehow ignored that folder as it was lying there for years.Fortunately before those sensitive information could compromised, one of the site follower sent me an email describing the serious flaw in security. I ...

jQuery Ajax – Handling unauthenticated requests via Ajax

jQuery Ajax - Handling unauthenticated requests via Ajax
Since few days I am working on a small project where I have to deal with lot of Ajax requests. The whole UI is designed such that only appropriate parts are refreshed with required information through Ajax.The application needs user authentication before accessing any part of it. Although this is easy to achieve in any MVC ...