how to put document.getElementById("sidebar").innerHTML ETC into an ECHO
hey folks i'm trying to add a sidebar to my page and am havnig
problems.
here is how i load my markers
while($row = mysql_fetch_array($result))
{
echo "var point = new GPoint(" . $row['lon'] . "," . $row['lat'] .
");\n";
echo "var marker = createMarker(point, 'Address: ". $row['address'] ."
".$row['city']." ".$row['state']."<br>Sale Price: $" .
$row['salesprice'] . "<br>Zipcode" .
$input1 . "<br>Sqft:" . $row['squarefeet'] . "<br>Sales Date: " .
$row['salesdate'] . "<br>Year Built: " . $row['yearbuilt'] .
"<br>Bedrooms: " . $row['bedrooms'] ."<br>" . $homelisturl . "<br>" .
$mortgagequotes . "<br>" . $realtorlist . "');\n";
echo "map.addOverlay(marker);\n";
echo "\n";
}
now i want to add a sidebar to the page so figured i'd add the
following after the last echo "\n"
echo "var document.getElementById("sidebar").innerHTML =
("sidebar_html");\n";
BUT but i keep on getting errors saying unexpected T_STRING, expecting
',' or ';' no matter what i do. any ideas?
0 Comments:
Yorum Gönder
<< Home