Many sites provide JSONP services, allowing you access to their content via a predefined API. Great source of JSONP-formatted data is the Yahoo Query Language. Below example, we’ll use YQL JSONP API service to populate the top news from yahoo rss and display on the web page. You can use the above code to populate
Here I am going to share the Javascript code for scrolling the page title of any web page. You can change the page title by simply set document title property using javascript Scrolling Page Title Code You can change the scroll speed by changing the value of variable “speed”. Above it is 150, which means
This post has jQuery code to show the time in different time zones using jclock plugin. You can use this code to display world clock. Here, I am displaying country names in dropdown, when you click on that it will show the current time in that country. See the live demo here. We have used
Recently, I had a chance to work on Amazon S3 policy creation to restrict the access to specific folder inside the bucket for specific users. I have seen the below description on Amazon docs: Example 2: Allow a user to list only the objects in his or her home directory in the corporate bucket This
Last post, we have discussed about Create image charts using Google Chart Tool. Here, we are going talk about how to create interactive charts using Google chart API. Google’s Javascript library allow you to create the charts and throws the events which can be handled by your code. Interactive charts and diagrams will give the
Google chart API is a free tool to create the charts online very easily. If you want to create and add the chart or graph to your webpage, then the Google Chart Tool is very useful. You just need to choose the type of the chart you want, enter the data values and choose the
Here’s a simple tutorial on how to show and hide the div content based on the click event using jQuery. Example1: Click on the below “item” link to display the content and click again to hide. Item Content Example2: This example shows multiple links and content. Click on “item1” to show and hide the content
Storing files online gives you the ability to access from anywhere, secure data and share easily with friends and family. There are lot of things you need to consider when storing data online, some are: – Security of data – Reliability of the service provider – Storage limitations – Restrictions on file size There are
Recently, I have changed my Google Adsense Address from US to India. Here, I am going to give the instructions to change the country. You can change the country information by using new Adsense interface for the most of the countries, but some are not allowed directly from your account, instead you have to start
Here is the javascript code to increase or decrease the font size on the fly, you can give control to the user to change the text size for better readability. function resizeFont(multiply) { var sz = document.body.style.fontSize; if (sz =='') sz = 14; //default font size var size = parseFloat(sz) + (multiply * 0.2) +