Skip to content

Instantly share code, notes, and snippets.

@ncoblentz
Created October 3, 2011 19:08
Show Gist options
  • Save ncoblentz/1259941 to your computer and use it in GitHub Desktop.
Save ncoblentz/1259941 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="js/jquery.form.js" ></script>
<script type="text/javascript" src="js/jquery.populate.js" ></script>
<script type="text/javascript">
function getAppData(){
$.ajax({
type: "get",
url: "webworks://blackberry/app/get",
success: function(msg){
$('#myAppDiv').populate(JSON.parse(msg).data);
}
});
}
</script>
</head>
<body>
<input type="button" onclick="getAppData();" value="Populate - APP"/>
<div id="myAppDiv">
Name: <span id="author"></span><br/>
ID: <span id="id"></span>
App Name: <span id="name"></span><br/>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment