Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YUI.add('PageContent', function(Y) {
- Y.namespace('Project').PageContent = Y.Base.create('PageContent', Y.Base, [], {
- requests: new Object(),
- history : new Object(),
- init: function() {
- // init the HistoryHash controler
- this.history = new Y.HistoryHash();
- },
- loadPage: function(id) {
- Y.one('#content').set("innerHTML", '<div id="loader2"><img src="gfx/ajax-loader2.gif" ><span>loading...</span></div>');
- this.loadContent(id);
- },
- loadContent : function(id) {
Add Comment
Please, Sign In to add comment