Archive

Posts Tagged ‘Javascript’

XML Paging in JavaScript

Aug 28th, 2010

I was trying to develop a paging in XML with JavaScript and could write this code. It takes a XML file name as Input and gives five records on each page. No of records can be changed on each page. Check recordPerPage and max variable. I was working on this… READ MORE

Adding Tweet This Button To Wordpress

Aug 18th, 2010

You may know by this time that Twitter has made simple adding Tweet this button on you site. Adding tweet this button on your blog or website is very easy. It is as easy as adding Facebook Like button.
Here is the code I am using, after removing Tweetmeme button.… READ MORE

How to Display Broken Images in Firefox?

Jul 17th, 2010

Firefox does not display broken image. If image has alt attribute set then Firefox will display alt text otherwise if will not display anything. IE display cross marked image when image is broken, when image cannot be found at the source. Firefox does it all for making the web page… READ MORE

Javascript: Validate That Input String Length Falls In Range For Different Types

Jul 10th, 2010

I am not sure what should be the title of the this post. I thought of titles like: JavaScript compare number in between array, check values in between min and max etc then thought of the long title. Still I am not sure if title is appropriate!
I got few… READ MORE

Google Analytics: Track Outbound Links And Special Pages

Jul 9th, 2010

Google analytics has lots of functionality but it does not provide an easy way of tracking outbound links on click. MyBlogLog provides this functionality is very useful way but that is free only 10 entry each days. That also has restriction on free version that you cannot see report after… READ MORE

Google Font API: Fonts Viewer – Preview all available Fonts in Google Directory

Jun 5th, 2010

Continue from Google Font API: Why it exists and How it is useful!-
Google API Font Viewer Application:
Google Font Viewer Application will display text using all fonts available as of today according to style you provide below. I checked the application only in Firefox. ‘Show me’ button will display… READ MORE

Remove Form Elements or any Element from Web Page (DOM) using JavaScript

Jun 3rd, 2010

Today I need to remove a form element from page based on certain input from customer. I used to do document.getElementById(‘myID’).style.display = ‘none’; and it was enough all the time. User cannot see and cannot use that element. But today it has not worked. What was the reason for that?… READ MORE

JavaScript: Dynamically Attach Event Handler to any HTML Element

May 29th, 2010

Want to attach an event handler to HTML element but not by writing as HTML property but directly using JavaScript! Attaching event dynamically for an element can be needed for the reason you do not have direct access to HTML element or for the reason you think that not attaching… READ MORE

Image Not Available : Easy Solution for Missing Images

Apr 28th, 2010

What to do if image is not available in the source you are reading dynamically. Firefox will not show anything (if alt text not available) and IE will show bad looking cross image.

I was working on a page where some data was coming from outside and based on that… READ MORE

Wordpress: Add Random Content in Sidebar Widget

Feb 26th, 2010

Need to add random content is sidebar! Do you have two kinds of content and want to display randomly to visitors? This can also be useful when you have two types of content and both are equally important but sidebar space is not allowing to add both kind of content.… READ MORE