Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dojo.require('dojo.data.ItemFileWriteStore');
- dojo.addOnLoad(function(){
- dojo.declare('SimpleSaveWriteStore', dojo.data.ItemFileWriteStore, {
- _postUrl: 'postdata.php',
- _saveEverything: function(saveCompleteCallback, saveFailedCallback, newFileContentString) {
- dojo.xhrPost({
- url: this._postUrl,
- content: {
- data: newFileContentString
- },
- load: saveCompleteCallback,
- error: saveFailedCallback
- });
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement