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?
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.
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');
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');
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');
5 matches
Mail list logo