hi
can any1 help me..
this code isn't working, well it is, right up until it actually submits the form.....
Code:
if(document.URL.indexOf("/") || document.URL.indexOf("index.php") || document.URL.indexOf("index.php#local")) {
if (!fileInput || fileInput == '') {
// dont submit the form
$('#warning').append("You must select an image or enter a url first <a href='#close' id='close'>close</a>").fadeIn(2000);
$('#warning').slideDown();
return false;
} else {
// submit
return true;
// show progress bar
$(".upload_btn").hide();
$("#progress").show();
}
}
if(document.URL.indexOf("index.php#remote")) {
if (!remoteInput || remoteInput == '') {
// dont submit the form
$('#warning').append("You must select an image or enter a url first <a href='#close' id='close'>close</a>").fadeIn(2000);
$('#warning').slideDown();
return false;
} else {
// submit
return true;
// show progress bar
$(".upload_btn").hide();
$("#progress").show();
}
}
it's just not hiding the btn and showing the progress......
anby help???