JavaScript and AJAX Web Development Tutorials

JavaScript, jQuery and AJAX (Asynchronous JavaScript and XML) Tutorials.
  Title / Author Reverse Sort Order Replies
Views
There is a "bug" with the parseInt JavaScript function. The bug is not something that will affect you very often, but it is something you should be aware of. We've seen the bug in every browser except Opera. I've created a button to demonstrate the bug. The bug is that parseInt can return an...
5
36,031
I needed to trim a string and also replace more than one spaces with a single space. The solution was simple with String.replace in JavaScript. Here's the code: var m = " My name is Pradeep "; m = m.replace(/^+/,'').replace(/+$/,'').replace(/{2,}/,' '); Making a function out of it. ...
7
115,409
There are hundreds of DHTML trees available online, most of them and written from scratch, some easy to understand and implement, while others are real pain to customize. Some of them need a JavaScript array to be populated or read an XML file to generate the tree. I've tried to develop one...
10
34,447
Introduction One Javascript function that gets used such frequently than it should to be is "eval". "eval" evaluates the content of a text string passed to it and then executes it as if it were normal Javascript code.. Actually, we should never use eval for any purpose in our code, be it...
10
57,658
Introduction Some characters are reserved in HTML. For example, you cannot use the greater than or less than signs within your text because the browser could mistake them for markup. If we want the browser to actually display these characters we must insert character entities in the HTML...
4
3,996
Arrays are one way of keeping a program more organized. They allow you to do some things that are difficult without them. Arrays are usually a group of the same variable type that use an index number to distinguish them from each other. Suppose you wanted to write out 5 names, and use variables for...
5
17,251
An operator is a symbol applied to data values that causes the computer to carry out a specific operation on that data . In VBScript, operators are used to perform an operation. For example, an operator could be used to assign a value to a variable. An operator could also be used to compare two...
0
29,882
Introduction The second type of procedure is called a function. Like a subroutine, a function also holds a series of VBScript statements. The only difference is that a function actually returns a value to the code statement that called it. A function is a block of code that can be called from...
0
22,790
It is highly recommended that you are familiar with HTML and Javascript before reading tutorial. Notice that this article is only glimpse on this topic, it barely covers all the AJAX features and stuff. This tutorial will show you how 'Ajax' works and how to use it from a web developer's...
2
2,469
On many forums like DigitalPoint you would see lots of people claiming to be making thousands of $$$ with an ebook that costs $1 and have lots of screenshots to show you as well. Never trust those. This can be done in Firefox and IE7 with just one line of code. Yes its true. One line exactly. ...
11
19,925
Web-pages can take take time to load for variety of reasons and if your page takes lot of time to load you have to identify areas where most of the time is taken. I have seen that in most cases it is always the Advertisements. At least that was the case for Go4Expert. My next step was to load...
7
9,401
Non-JavaScript Programmers find it difficult to have fancy drop down menu's but not any more. Today I will show you how easy it is to create a simple yet very SEO Friendly Drop Down Menu Using JQuery. The idea of this article came from the thread started by siddharthrkulkarni on Drop Down Menu....
10
10,269
Have you ever wondered when you see form on some website submitted in a fraction of a second? Have you ever wanted such forms on your site? This is it. Let us take a sample form. <form method="post" action="SubmitToSomeFile" id="frm" accept-charset=UTF-8 name="frm"> <table...
5
8,760
Feedburner statistics are not part of Google Analytics and I couldn't understand why but you can track Feedburner Email Subscription Form Submission in Google Analytics Very easily. Activate Email Subscription for your Feed in Feedburner and grab the HTML code of your subscription form. The HTML...
0
3,265
There are multiple ways to attach an event handler in jQuery but all of them does not function exactly the same way. If there are elements created after DOM is loaded, then not all the events associated with them would be triggered if you have not attached the event handlers correctly. Example ...
0
6,799
// The functions have been adapted from various sources // and re-written to provide maximum flexibility // and compatability with various browsers. //Global Declarations var ie = (document.all) ? true : false; function toggleClass(objClass){ // This function will toggle obj...
10
32,345
Background Many time we found the file worm.vbs in our computer in each dir. worm.vbs may or may not be malicious. but when they execute's they consume CPU. So, Better option is to remove them. but it is tough job as they exist in each dir. I written a vbScript to...
5
4,895
A look at how AJAX works This tutorial will show you how ajax works and how to use it from a web developers standpoint. Ever wonder how things like G-Talk work? they don't reload the page or use Iframes and yet they always appear to have the data thats coming in instantly. it acomplishes this...
2
13,327