IE 7 problems
Posted: Fri Jan 07, 2011 8:38 pm
IE7 doesn't like some of these lines. It appears to not echo out anything. However, when I remove the indicated code, the other echo statements work.
Code: Select all
$sql2="SELECT Address , Phone FROM Addresses WHERE EntryID=$sval";
$result2=mysql_query($sql2)or die(mysql_error());;
$numb = 1;
echo "<ul>";
while($row2=mysql_fetch_array($result2)){
$address =$row2['Address'];
$phone = $row2['Phone'];
// the stuff below this line doesnt work in IE 7
echo "<div id=\"light".$numb."\" class=\"white_content\"><a href=\"javascript:void(0)\" onclick=\"document.getElementById('light".$numb."').style.display='none';document.getElementById('fade').style.display='none'\"><b>Close</b></a><form action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\"><br />Enter your starting address for directions:<br /><input type=\"text\" name=\"saddr\" /><input type=\"hidden\" name=\"daddr\" value=\"" .$address . ", Austin TX\" /><input type=\"submit\" value=\"get directions\" /><img src=\"http://maps.google.com/maps/api/staticmap?center=" .$address . ", Austin, TX&zoom=14&size=400x330&maptype=roadmap&markers=color:red|label:A|" .$address . ",Austin, TX&sensor=false\"></form></div>";
// end of problem code
echo "<li > Address ".$numb.": " .$address . " Phone: ".$phone." <a href=\"javascript:void(0)\" onclick=\"document.getElementById('light".$numb."').style.display='block';document.getElementById('fade').style.display='block'\">Map</a></li>";
$numb++;
}
echo "</ul>";