Archive

Archive for the ‘Javascript’ Category

How to make sequential ajax call

August 24th, 2010 Hitesh Agrawal No comments

We all are aware of Ajax, if someone still wants to learn ajax they can refer to Ajax Tutorial. But making normal ajax call is rather straight forward as compared to sequential ajax call, which is often referred to as chaining of ajax call. Here we will be learning on how we can make sequential ajax call.
Read more…

Categories: AJAX, Javascript Tags: ,

JSON in Javascript

July 14th, 2010 Hitesh Agrawal 2 comments

JSON is being widely used in Web for data transfer from client to server. But here in this article we will be understanding on what is JSON and how to use JSON in Javascript. The way JSON object is created is independent of any programming language you use. Also if you follow the JSON protocol, javascript will recognize your JSON object.
Read more…

Categories: Javascript Tags: ,

Manipulating HTML Table using JavaScript

October 1st, 2009 Hitesh Agrawal 1 comment

In this article we will learn on how we can Manipulate HTML table using JavaScript. Following topic will be covered here:
1) Creating HTML Table in JavaScript
2) Adding new Row in HTML Table using JavaScript
3) Remove Row from HTML Table using JavaScript
Read more…

Categories: Javascript Tags:

Show/Hide HTML Elements using JavaScript

January 12th, 2009 Hitesh Agrawal No comments

When it comes to showing or hiding any HTML elements, we can perform this operation in JavaScript in two ways:

  • visibility
  • display

Read more…

Categories: Javascript Tags:

Must Have Functions in JavaScript

December 22nd, 2008 Hitesh Agrawal 9 comments

JavaScript does not comes with pre-bundled functions or methods that can perform special operations. We as a programmer has to write those functions. In this article i am listing down few javascript functions that i have encountered.
Read more…

Categories: Javascript Tags:

Dynamic Variables in Javascript

December 17th, 2008 Hitesh Agrawal 7 comments

In Javascript under normal circumstances we create all variable by writing “var ” in our code. But sometimes we might require to create variable at runtime either inside loops or inside some condition. These variables are referred as dynamic variables because these variables are named dynamically. This article will show you code snippet on how can we create dynamic variable in Javascript.
Read more…

Categories: Javascript Tags:

Convert XML Document to String in JavaScript

September 19th, 2008 Hitesh Agrawal 4 comments

Often we want to convert the XMLObject generated by JavaScript in memory to String, this is essential as a developer we would like to test whether the generated XML is as per the required XML Structure This article contains javascript code snippet that will allow you to convert XML Object to String.
Read more…

Categories: Javascript Tags: ,

Calculating DIV Position in JavaScript

August 12th, 2008 Hitesh Agrawal 7 comments

The following code snippet will return you the top and left position for DIV element used in your web page.
Read more…

Categories: Javascript Tags: