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
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
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
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 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
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
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
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
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
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