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 <peter.w...@gmail.com> wrote: > I'm trying to see if a pdf file exists in a directory on another > server. If it does, do one thing, if not do another. > > Here's what I tried: > $.ajax({ > url: url, > type: 'GET', > dataType: 'jsonp', > jsonp:'jsonp_callback', > error: function () { > > $('.Row').eq(i).children('td:eq(2)').append(file_unavail); > }, > success: function(){ > > $('.Row').eq(i).children('td:eq(2)').append(file_avail); > } > }); > > I can get it to work on the same server by removing the dataType and > jsonp but I was search around and read that the jsonp would allow me > to get around the Access to restricted URI denied" code: "1012 > > I'm I doing something wrong? Is it possible to do what I'm asking with > jQuery?