+2  A: 

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
Actually, ipUrl is defined 2 lines above the function call. I will get the unminified version and try to step in...
Traveling Tech Guy
Damn! You wouldn't believe it. Downloaded unminified version and put it in the js directory. Changed reference in HTML page and traced with FireBug. The function DOES rceive the right URL and actually works! I went back and forth from unminified to minified and the result is clear: something is screwed up in the minified version! Still, I wonder what could screw up a function in a way that its location matters??? I'll add this info to the main question.
Traveling Tech Guy
A: 

Have you tried explicitly setting the callbackParameter?

$.jsonp({
    url: ipUrl, 
    callbackParameter: 'nameOfTheCallbackParameterThatYourServerSideScriptExpects',
    timeout: 30000,
    success: displayData,
    error: displayError
});
Darin Dimitrov
Yes I have - no change
Traveling Tech Guy