sam1989
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by sam1989
-
-
I want to check the file exists or not at the path pointing at file..?? <li><a onclick="db_mcmm('../report_data_fe_nldm_completeness/DB_existence_PVT_report.html');"><h3><u>DB NLDM MCMM</u></h3></a></li> Above is snippet of code from html. The path to file is given as argument to the javascript function defined in header section of html. I want to check to if the "DB_existence_PVT_report.html" file exists or not. Javascript function in header section is as follows : <script ="text/javascript"> function db_mcmm(value) { var mcmm_file=document.getElementById('content'); mcmm_file.innerHTML= "<iframe src=" + value + " width=\"79%\" height=\"600px\"></iframe>"; } </script> Can some1 guide how i can check if file exists or not..?? I tried using ajax but didn't got how to use ajax in this.... any help will be thankful
File exists or not using javascript..
in JavaScript
Posted