latest   
permalink 2006-03-24  programming javascript adsense
edit  
Here is a demo of a Javascript designed to get the current IP address. A key element of the algorithm is that it makes a synchronous XMLHttpRequest to a server php script, i.e. ip = getIP(); does not return until the server has provided the answer. Here is a sample of the script in action:
    <script language="javascript" src="get_ip.js"></script> <script> document.write('For example, your IP address is: ' + getIP()); </script>
It is also a useful basis for a method of avoiding those pesky accidental invalid clicks.
tags: larger lettering indicates there are more entries with that tag
9-11
adsense
bob_hope
book
bush
ching
computers
cool
fire
firefox
flood
freedom
funny
gadget
games
gianna
google
google_analytics
harry_potter
history
html
ibm
internet
iraq
jack_black
javascript
jobs
johnny_cash
keeshan
legal
linux
maps
marilyn_vos_savant
microsoft
movie
mukhtar_mai
music
open_source
outsourcing
pair.com
people
photo
picasa
politics
programming
reference
sco
security
site
spam
spyware
star_trek
star_wars
thumbly
time
tivo
travel
trivia
unix
usability
wishlist
Add to Google
 
Web this blog
[static pages] © 2010 Michael Thompson