Advertisement
Guest User

Untitled

a guest
Sep 20th, 2014
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. OcrtApplication.OcAttorneyCollection = Backbone.Collection.extend({
  2. model: OcrtApplication.OCAttorney,
  3. url: 'http://apiserver/OCAttorney',
  4.  
  5.  
  6. pageData: function (key, value, pageNum, perPage) {
  7. var self = this;
  8.  
  9. var result = function (self, key, value, pageNum, perPage) {
  10. $.ajax({
  11. url: 'http://apisurver/ocattorney/' + key + '/' + value + '/' + pageNum + '/' + perPage,
  12. type: 'GET',
  13. contentType: "application/json",
  14. crossDomain:true,
  15. success: function (result) {
  16. //alert(result);
  17. self.reset(result);
  18. }
  19. });
  20. }
  21. result(self,key,value, pageNum, perPage );
  22. }
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement