vijayjoshi.org - php | javascript | ajax | and all things web

Posts Tagged ‘Javascript’

How to dynamically load the Google Maps javascript API (On demand loading)

January 19th, 2010 | Posted by Vijay Joshi | 12 Comments
Normally google maps js api is loaded at the time of page load via a script tag with src set. If map is not so major feature of your application ...

Getting and setting value of html elements using jQuery

December 9th, 2009 | Posted by Vijay Joshi | 4 Comments
If you have started using jQuery recently and you  are used to DOM methods of getting and setting values for form and html elements, this article is for you. Using jQuery ...

Collection of 10 top 10 lists about web development

September 23rd, 2009 | Posted by Vijay Joshi | 2 Comments
I am a regular reader of web development articles and in this process bookmark a lot of them. Out of that collection I present to you a list of 10 ...

javascript : 7 tips for better coding

September 11th, 2009 | Posted by Vijay Joshi | 6 Comments
1- Use short hand notation for declaring arrays and objects Arrays and objects are declared as following: var someArray = new Array(); var someObject = new Object(); There is a shorthand notation for declaring ...

FAQ(Javascript) : User confirmation on close button of browser

July 7th, 2009 | Posted by Vijay Joshi | 2 Comments
Problem: On clicking the close button of browser ask for user confirmation with a custom message Solution: Use the window.onbeforeunload method. This method expects a string value. This string will be ...

Changing font size on a page with javascript for better user experience

April 2nd, 2009 | Posted by Vijay Joshi | 12 Comments
Today we will learn to add a simple functionality to web pages. Visitors on a web page will be able to increase or reduce the font size of text as ...