File isn't being found in directory
Posted: Tue Mar 06, 2007 8:16 pm
hello...i've got a simple JS script that opens a picture in a new window. it's passed the directory path to the picture and every time
the path comes up correctly but it can't find the file...and the file is DEFINITELY there. anyone have any clue why it comes up "Not Found"?
the path comes up correctly but it can't find the file...and the file is DEFINITELY there. anyone have any clue why it comes up "Not Found"?
Code: Select all
function OpenPic(urlForPic){
window.open(urlForPic, '', 'width=auto, height=auto, scrollbars=0, toolbar=0');
}
Code: Select all
function QueryExec($sql){
if(!empty($sql)){
$query = mysql_query($sql);
while($qryResults = mysql_fetch_array($query)){
$theLink[] = $qryResults['photo_name'];
}
echo '<h5 class="picTitle">'.$_GET['cat'].' Photos</h5>';
echo '<div class="thumbWrap">';
foreach($theLink as $link){
echo '<div class="picCell" id="http://localhost/Freelance%20Work/Ashland/2007/images/'.$link.'" onclick="OpenPic(this.id)">pic</div>';
}
} else {
return false;
}
}