AngularJS makes common data binding tasks easy to implement.We set the viewmodel for our application using the $scope in the controller and access it in the view.AngularJS automatically updates the view when the value of the $scope changes. One common feature is iterating over a collection of items.We can implement this scenario easily using the […]
jQuery
Posting json data using jquery ajax in MVC
JSON is a data exchange format which is commonly used to exchange the data between the web server and the web browser.In Fetching json data using jquery ajax in MVC we looked at how to fetch data using JSON from the MVC controller.Now we will see how to pass data in JSON format from the […]
Writing a simple jQuery plugin
jQuery is the most popular and commonly used JavaScript library.It makes it relatively easy to implement common functionalities .Also unlike JavaScript we don’t need to write lot of code for the common operations.Its sometimes referred to as “Do more write less” library. Though jQuery provides lots of commonly functionality, out of the box, which is sufficient in most […]
jQuery document ready vs window onload
One of the common requirements while working with web applications is to execute some script as soon as the web page loads. As the javascript or jQuery executes on the browser so we have to ensure that the document or the web page is loaded by the browser before the script can be executed.Two common ways to […]
HTML5 History API
The browser toolbar is one of the most important UI element in any web application.One of the most common ways to navigate between the different pages is through the back and forward buttons on the toolbar. What the back and forward buttons actually do is that they help to navigate between the pages already visited by […]