Sibeesh Passion

Category: JavaScript

Writing JavaScript Tests Using Jasmine Framework

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will see how we can write unit test cases in JavaScript. Here we are going to use a framework called Jasmine to write and test our unit test cases. Jasmine is a behavior driven development framework to test our JavaScript codes. The interesting things about Jasmine framework are, it doesn’t even […]

Read More

Programmatically Change The Element Or Page Into Full Screen Mode

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this article we are going to see how we can change any element or any page into full screen mode programmatically. To do this requirement we are going to use client side API requestFullscreen . To make it compatible to all the browsers, we will be using separate API calls for each browsers. By […]

Read More

Hoisting In JavaScript

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will discuss the importance and limitations of Hoisting in JavaScript. We all writes client side codes. Right? But few of you might not be aware of the term Hoisting. Hoisting is one of the default behaviour of JavaScript, it is the process of moving all the declarations of the variables to […]

Read More

Regex to remove a word from a string

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will see how we can remove a particular word from a string entirely in jQuery. Here I am removing the word Unspecified from my variable oldString. Please see my other posts related to JQuery here: JQuery Posts Kindest Regards Sibeesh Venu

Read More

Load Data To Grid On Sroll

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will discuss about how we can load data to a grid on scroll event. As you all know Grid is a main control in every dashboard. Every company uses a grid control for showing reports or any kind of data. Hence it is widely used, it is important that the grid […]

Read More

Custom Pager Using prev and next In jQuery

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will create a custom pager using prev and next functions in jQuery. You can treat this post as a simple demo of using prev and next functions. We will be using some html UI elements and we will apply the paging functionality by using native jQuery codes. In this way you […]

Read More

Function Declaration And Function Expression

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will see the basic difference between function declaration and function expression in jQuery and JavaScript. Sometimes the developer’s getting confused between these two topics(Shhhh I ma saying about the starters like me). Basically both are same. Only difference is depends on how you handle or treat these two. We will see […]

Read More

Overwrite CSS Styles Using addClass In JQuery

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will see how we can overwrite CSS styles using addClass method in jQuery. We have so many options to change the styles of a particular element. We can do it by editing the style sheet manually. But what if you want to do the same dynamically? If you need to change […]

Read More

jQuery no-conflict And Using Different Versions Of JQuery

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         In this post we will see what is jQuery no-conflict and what is the importance of jQuery no-conflict. We will also learn how can we use different versions of JQuery in the same page according to your need. jQuery no-conflict is an option given by the jQuery to over come the conflicts between the different […]

Read More

A Drag And Drop Game

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

         Hi Today we will create a drag and drop game which uses jquery drag drop functions. We will create two boxes, from one box we need to drag the content box and drop the same to another box. We will be using sortable function and its events. I hope you will like this game. Background […]

Read More
Footer With Address And Phones