Guest User

Untitled

a guest
Oct 20th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. enyo.kind({
  2. name: "enyo.Draw",
  3. //kind: HeaderView,
  4. kind: enyo.Control,
  5. components:[
  6.  
  7. //{ kind: "PageHeader", content: "Drag your finger in the box below to draw", flex: 0, style: "font-size: 16px" },
  8. //FINGER MOVEMENTS
  9. {kind: "Draw.control", ondragstart: "itemDragStart", ondragfinish: "itemDragFinish", onmousedown: "itemMousedown", onmouseup: "itemMouseup" },
  10.  
  11. //ACTIVE WINDOW
  12. {kind: "ApplicationEvents", onWindowActivated: "windowActivatedHandler", onWindowDeactivated: "windowDeactivatedHandler"},
  13.  
  14. //SLIDER SHITE
  15. {kind: "VFlexBox", tapHighlight: false, components:
  16.  
  17. [{className: "slide-it", kind: "Slider", onChanging: "sliderChanging", onChange: "sliderChange", position:2 },
  18.  
  19. //AJAX CALLING
  20. {name: "SendCans", kind: "WebService", onSuccess: "gotResultsSuccess", onFailure: "gotResultsFailure"}
  21.  
  22. ]}
  23.  
  24. ],
  25.  
  26.  
  27. //WINDOW ACTIVATION SHITE
  28. windowActivatedHandler: function() {
  29. //SET DEFAULT COLOR
  30. enyo.setCookie('color', '#000');
  31. //SET DEFAULT COLOR
  32. enyo.setCookie('width', 2);
  33.  
  34. //PICKER
  35. DaPicker();
  36. //GET HANDLE
  37. DaHandle();
  38.  
  39. },
  40.  
  41. });
  42.  
  43.  
  44. ////////// handle.js /////////////////
  45. function DaHandle(){
  46.  
  47. $('lala').innerHTML = 'chicken';
  48.  
  49. var url = bas_tp;//UPDATE PARTY STUFF
  50. this.$.SendCans.url = url;
  51. this.$.SendCans.call();
  52.  
  53. }
  54.  
  55. //PROCESS OLE AJAX
  56. gotResultsSuccess: function(inSender, inResponse) {
  57. //this.results = inResponse.responseData.results.title;
  58. //this.results = inResponse.status.handle;
  59. //this.$.list.refresh();
  60.  
  61. //this.log(enyo.json.parse(this.results));
  62.  
  63. $('lala').innerHTML = 'hello';
  64.  
  65. }
  66.  
  67. /*gotResultsFailure: function(inSender, inResponse) {
  68. this.$.errorMessage.setContent('Search Failed')
  69. this.$.errorDialog.open();
  70. }
Add Comment
Please, Sign In to add comment