Ich versuche, WalkScore Map in eines der divs auf der Seite zu laden. Aus irgendeinem Grund funktioniert mein Code nur wenn ich alert()
etwas nach $.get()
Methode. Hab keine Ahnung warum.jQuery.get() -Methode will nicht arbeiten
Kann jemand etwas vorschlagen? Vielen Dank.
<html>
<head>
<title>jQuery - Ajax dynamic content loading</title>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
function loadWalkScore()
{
$.get("http://www.walkscore.com/tile/show-tile.php?wsid=567f19156a706dddb8a799630d85467e",null,null,"script");
alert("hello");
}
</script>
<div id="contentArea" style="margin: 20px 0px 10px 10px; border: 1px solid #CCC;">
<script type="text/javascript">
var ws_lat = "40.710318";
var ws_lon = "-74.016553";
var ws_width = "630";
loadWalkScore();
</script>
</div>
Hallo Elzo, Welche Browser verwenden Sie (außer FF)? ich hochgeladen zwei Beispiele hier: http://websvit.com/tabs/no-alert.html // nicht http://websvit.com/tabs/with-alert.html funktioniert // funktioniert hier –
in FF funktioniert, auch die, die Sie sagen, ist nicht. Wenn ein Browser-Problem ist, denke ich nicht, dass jQuery verwandt ist. –