[jQuery] Re: Cross server check if a pdf file exists

2009-04-22 Thread Eric Garside
If you have access to PHP, I'd just throw up a script on your local server to request the headers of files on any server, and then just call that from your own domain using regular ajax calls, instead of jsonp. Jsonp doesn't actually make an ajax call, it includes a javascript file on the page, wh

[jQuery] Re: Cross server check if a pdf file exists

2009-04-22 Thread Pete
it's a regular url (www.somesite.com/somepdf.pdf) and it seems to be adding that '?jsonp_callback=?' with the code i have above. I'm trying to do it without server-side script. Has anyone tried this? On Apr 22, 4:49 pm, James wrote: > Oh, and to answer your question, I think when your results

[jQuery] Re: Cross server check if a pdf file exists

2009-04-22 Thread James
Oh, and to answer your question, I think when your results are not in the format specified for jsonp, regardless of whether the file exists or not it will still go to the error callback. By the way, what is the 'url' that you're using? Are you adding the '? callback=?' I've never tried this out, b

[jQuery] Re: Cross server check if a pdf file exists

2009-04-22 Thread James
I personally suggest, instead, you set up a server-side script on your own server that checks the remote file for you. Then you can use AJAX to call that script to get the results. On Apr 22, 10:30 am, switch13 wrote: > I'm trying to see if a pdf file exists in a directory on another > server. I