Guest User

Untitled

a guest
Sep 14th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>Highcharts Tutorial</title>
  4. <script src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
  5. </script>
  6. <script src = "https://code.highcharts.com/highcharts.js"></script>
  7. <script src = "https://code.highcharts.com/highcharts-3d.js"></script>
  8. </head>
  9.  
  10. <body>
  11. <div id = "container" style = "width: 550px; height: 400px; float: left">
  12. <script language = "JavaScript">
  13. $(document).ready(function() {
  14.  
  15. alert("hi....");
  16.  
  17.  
  18.  
  19. alert("hello");
  20.  
  21. Alfresco.util.Ajax.jsonGet({
  22.  
  23. url: "http://10.0.0.175:8080/alfresco/service/powergrid/RTNfiles/count",
  24.  
  25. successCallback: {
  26. fn: function(res){
  27.  
  28. alert("success");
  29.  
  30. alert(res.responseText);
  31.  
  32. },
  33.  
  34. scope: this
  35.  
  36.  
  37.  
  38. },
  39.  
  40. failureCallback: {
  41. fn: function(response)
  42.  
  43. {
  44.  
  45. // Display error message and reload
  46.  
  47. Alfresco.util.PopupManager.displayPrompt(
  48.  
  49. {
  50.  
  51. title: Alfresco.util.message("message.failure", this.name),
  52.  
  53. text: "search failed"
  54.  
  55. });
  56.  
  57. },
  58.  
  59. scope: this
  60.  
  61.  
  62.  
  63. }
  64.  
  65. });
  66.  
  67.  
  68.  
  69. });
  70. </script>
  71. </div>
  72.  
  73. </body>
  74.  
  75. </html>
Add Comment
Please, Sign In to add comment