-
-
Save dmachi/844487 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Part of the Eduzine (http://eduzine.edujini-labs.com) Articles. | |
* | |
* Downloads available at http://downloads.edujini-labs.com | |
* | |
* (C) 2008, Edujini Labs Pvt Ltd | |
* http://www.edujini-labs.com | |
*/ | |
dojo.provide("edujini.SubscriptionList"); | |
dojo.require("dijit._Widget"); | |
dojo.require("dijit._Templated"); | |
dojo.require('dojo.parser'); | |
dojo.declare("edujini.SubscriptionList", [dijit._Widget, dijit._Templated], | |
{ | |
templateString : null, | |
templatePath : dojo.moduleUrl('edujini', 'templates/SubscriptionList.html'), | |
postCreate: function() | |
{ | |
var Subscriptions = this.subscriptions; | |
Subscriptions.innerHTML = "Loading..."; | |
dojo.xhrPost({ | |
url: 'subscriptions', | |
handleAs: 'text', | |
load: function(Data) { | |
alert(Data); | |
Subscriptions.innerHTML = Data; | |
dojo.parser.parse(); | |
}, | |
-- or -- | |
load: dojo.hitch(this, function(Data){ | |
this.subscriptions.innerHTML = Data; | |
.. | |
} | |
error: function(error) { | |
console.log(error); | |
} | |
}); | |
} | |
}); | |
function DeleteFeed(id){ | |
/* | |
if (confirm('Are you sure?')) | |
{ | |
URLSubmit('deletefeed/' + id,'debuginfo',OverwriteDivHTML,ChangeArticleList); | |
DeleteDiv('s' + id); | |
}*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment