All posts in: How to

How to scale CSS background to desired dimensions

One can easily scale background in CSS to any dimension to fit its container. 100% CSS background is good looking and gives bump to your design. Here is how this can be done. 1 2 3 #MyID { background-size: 70% 60%; /* 70% width and 60% ...

How to cancel Ajax requests using jQuery

Since XMLHttpRequest ,or the equivalent, object is returned by jQuery, so you can simply use abort function. To cancel ajax requests you have to follow below code. 1 2 3 4 5 6 7 8 9 10 11 var myRequest= $.ajax({ type: ...

How to change the URL without refreshing web page

Many web apps , these days, modify or change URL without refreshing web page. Facebook is a great example. This seems quite fast and index-able too. This is supported by Chrome, Safari, FF4+, and IE10 & above. 1 2 3 4 5 function ...

Page 1 of 81234567...Last »