Archive for the ‘how-to’ Category

Page 3 of 10«12345»...Last »

Handling array of HTML Form Elements in JavaScript and PHP

Today, I would like to share the way of handling array of HTML FORM elements using JavaScript and PHP.Well, it's very easy to get the data from the array of HTML form elements in PHP and using them but in JavaScript it's a bit tricky to handle the array of HTML form elements. I had a hard time to handle them via JavaScript in past thats why I'm posting it here so that people will not have hard time to cope with array of form elements in JavaScript and PHP. Full story

Move an object on mouse wheel scroll event using JavaScript

Today, I've come along with another post where you'll see how to move a object within web page when you scroll the mouse wheel using JavaScript.In this example, when you move the mouse wheel the object i.e div moves upwards or downwards depending upon the scrolling direction the mouse wheel. Now, let's look at the detail of this tutorial in JavaScript. Full story

How to hide actual URL in the status bar of all browsers?

Yesterday, Jacob mailed me and asked me how can I show different text or link in the status bar of browsers like Firefox or safari when mouse is over the link.He found the technique which only worked for IE but not for other browser but I've come up with a technique which works for all browser. This kind of technique is quite useful if you want to hide the actual link in status bar of browsers and show the different URL instead of actual one. Full story

State preserved bottom hanging message box using jQuery

Last time, I've made the top floating message box using jquery. And a lot of people has asked me how can I preserve the state of that message box so that when it is closed.It won't be open to for some time interval. Today, I've come with state preserved bottom hanging message box. When you close the message box, it's state is preserved in cookie created using JavScript so that this message box won't show up for certain hours. Full story
Tags:

Getting country , city name from IP address in PHP

Yesterday, miaki asked me how can we get the country name from the IP address in PHP. Today, I've come up with the answer of this question. I've used the API from hostip.info to fetch the country name , city name and country code from the given IP address. I've mad this function in PHP which uses XML response from hostip.info and extracted country name, city name and country code using regular expression. Full story
Page 3 of 10«12345»...Last »
Copyright © 2009 Roshan Bhattarai's Blog. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.