Public feed
#600695
<html>
<head>
<title>javascript test page</title>
<script src="jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="Base.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var Model = Base.extend({
id: null,
fields: null,
constructor: function(id) {
this.id = id;
this.load();
},
load: function() {
var url = 'ajax.html';
$.getJSON(url, this.populateFields);
},
populateFields: function(json) {
that.fields = json;
}
});
$(document).ready(function(){
var instanceOfModel = new Model(1);
});
</script>
</head>
<body>
</body>
</html>