Kann mir bitte jemand helfen, herauszufinden, wie man dieses Stück Javascript nach der $.each
in meine passt, um meine Bedürfnisse anzupassen? Mein JSON-Array kann in der URL gefunden werden, die in meinem Javascript deklariert ist. Jede Hilfe wird sehr geschätzt!Json Phonegap Api
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.getJSON("http://quickcutsystem.com/quotesapp-home/?json=1",function(result){
$.each(result, function(i, field){
$("#output").append("Title: "+ field.title + " duration: "+field.id +" Price:"+field.price+"<br/>");
});
});
});
</script>
</head>
<body>
<div id="output"></div>
</body>
</html>
Vielen Dank, das ist perfekt! Ich weis das zu schätzen! –