[jQuery] Check if remote file exists.
Is it possible to use jquery to check of remote file (url) exists or not. For example, I have this url: http://www.myserver.com/media/test.mp3 can I use a jquery http request to see if the url is valid or not?
[jQuery] Re: Can Jquery fetch file, and display download dialog?
Hey, thanks for the reply. I tried the above function, and now the link just doesn't do anything when I click on it. I don't understand where you got '.dialogBox' from, however.
[jQuery] Can Jquery fetch file, and display download dialog?
Ok here is my problem: I have a link: http://www.myserver.com/01-01-08-PM.mp3"; class="download" id="7">Download I wrote this js: var $j = jQuery.noConflict(); $j(document).ready(function() { $j('.download').click(function() { var link = $j(this).attr('href'); }); }); The idea, is that I want the script to fetch the url (href), and return it in the form of a download dialog. The problem that I am facing, is that when people click "Download", it just opens up the file directly with the associated player. Can Jquery overcome this issue if it does an httprequest in the bacgkground to fetch the file? please let me know what my options are.
[jQuery] Can Jquery fetch file, and display download dialog?
Ok here is my problem. I generate this link with PHP: http://www.myServer.com/2008/01-01-08- PM.mp3">Download then I have this js: var $j = jQuery.noConflict(); $j(document).ready(function() { $j('.download').click(function() { var link = $j(this).attr('href'); }); }); Basically, I'm trying to have the download link show the download dialog in order to download that MP3 file, instead of opening it automatically with the associated player. Is it possible to use jquery to request the file with an ajax request?
[jQuery] Can Jquery fetch file, and display download dialog?
Ok here is my problem. I generate this link with PHP: http://www.myServer.com/2008/01-01-08- PM.mp3">Download then I have this js: var $j = jQuery.noConflict(); $j(document).ready(function() { $j('.download').click(function() { var link = $j(this).attr('href'); }); }); Basically, I'm trying to have the download link show the download dialog in order to download that MP3 file, instead of opening it automatically with the associated player. Is it possible to use jquery to request the file with an ajax request?