View Single Post
Old 10-03-2012, 08:31 AM   PM User | #1
sourabh1989
New Coder

 
Join Date: Jul 2012
Posts: 20
Thanks: 3
Thanked 0 Times in 0 Posts
sourabh1989 is an unknown quantity at this point
Checking file exists or not using javascript??

i want to check that if a path to a file is given and we want to check that the file is present there or not in that directory..??

Below is my html snippet in which i am passing my path as argument in javascript function written in html header section..

Code:
<li><a onclick="db_mcmm('../report_data_fe_nldm_completeness/DB_existence_PVT_report.html');"><h3><u>DB NLDM MCMM</u></h3></a></li>
Javascript function written in header section is as follows :

Code:
<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>
Is it possible to check if the file is present in that specified path directory...
sourabh1989 is offline   Reply With Quote