Created
October 3, 2011 19:08
-
-
Save ncoblentz/1259941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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