pinktako
10-27-2008, 08:09 AM
I found this JavaScript code on another forum that will check if file exists before it is loaded. I am using ExternalInterface.call to call this JavaScript function.
<script language="JavaScript">
function fileExists(file_name) {
var answer = <?php return file_exists(file_name); ?>;
return answer;
}
</script>
However, this JavaScript only works in FireFox, IE and Safari both errors out. Does anyone see what the problem is?
<script language="JavaScript">
function fileExists(file_name) {
var answer = <?php return file_exists(file_name); ?>;
return answer;
}
</script>
However, this JavaScript only works in FireFox, IE and Safari both errors out. Does anyone see what the problem is?