Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OcrtApplication.OcAttorneyCollection = Backbone.Collection.extend({
- model: OcrtApplication.OCAttorney,
- url: 'http://apiserver/OCAttorney',
- pageData: function (key, value, pageNum, perPage) {
- var self = this;
- var result = function (self, key, value, pageNum, perPage) {
- $.ajax({
- url: 'http://apisurver/ocattorney/' + key + '/' + value + '/' + pageNum + '/' + perPage,
- type: 'GET',
- contentType: "application/json",
- crossDomain:true,
- success: function (result) {
- //alert(result);
- self.reset(result);
- }
- });
- }
- result(self,key,value, pageNum, perPage );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement