
In this article, I want to show you how to use a template in JQuery. It is a best practice to not embed the html codes in the JavaScript code. Using this best practice makes the code clearer and also more maintainable.Using template is one neat approach for applying this best practice. To use template ...
There are some common effects in almost every website that catches our eyes immediately. Here I will show how a small piece of code can add these effects. At first I used a jQuery sliding method named slideToggle().After loading the page when HTML element with id flip_bar is clicked, it will slide down a panel ...
Almost all internet users like you & me are signed up or registered in various sites. Can you remember the last one? This process is little bit intelligent & guide us to provide right type of information. Now let’s explore how it happens. I think it will help the beginners a lot & others can ...
In this article, I want to show how one can call ASMX web service from his or her JQuery client code and also show the subtle issues that he or she might encounter. To be more specific, I want to show how to pass a JavaScript object to an ASMX web service method and get ...
When it is needed to display the current unique URL of each page within a site you can try the following script: For example, if we are browsing this page http://www.scriptiny.com/category/javascript/ This script will generate/print: http://www.scriptiny.com/category/javascript/ Now if a site with 50 pages requires to show current URL in each page, just put this piece ...
At first, I should define, what is AJAX? The term refers to the use of different technologies like XML, XHTML, and JavaScript to update a part of a web page without reloading the whole page. This feature is becoming an essential part of modern web development. In this regard, modern browsers provide XMLHttpRequest API interface ...