On Aug 21, 1:15 pm, Christof Donat <[EMAIL PROTECTED]> wrote: > Hi, > > > Is there an easy way to get a remote script and run code when it has > > loaded as well as check the content type? $.getScript only works with > > those scripts on the same server. > > You can use > > $('<script src="http://example.com/myscript.js" type="text/javascript">'). > appendTo('head'); > > It should work in most cases, but there are Safari Versions which don't > interpret scripts loaded that way. > > Christof
I'm aware of that method, but I want a callback to find out what content type was loaded, display it if text/html or execute it if text/ javascript. Although the bit I am not sure of is how to execute the script after the user has passed the CAPTCHA test (especially since it is on a separate domain). Having a proxy on the server is the closest I can get, but I don't know why the whole script is not being retrieved.