Just a guess, but if the ipUrl is local to the page as well (for testing), then perhaps when the script gets added from a different directory its trying to hit a local file that doesnt exist relative to its location. That would immediately throw the error function.
Can you use the non minified version of the script to debug and see what url its trying to hit?
Alex Sexton
2009-10-20 16:42:12