[hornetq-commits] JBoss hornetq SVN: r10584 - trunk/hornetq-rest/examples/javascript-chat/src/main/webapp.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon May 2 14:22:34 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-05-02 14:22:34 -0400 (Mon, 02 May 2011)
New Revision: 10584

Modified:
   trunk/hornetq-rest/examples/javascript-chat/src/main/webapp/index.html
Log:
Just adding a few comments

Modified: trunk/hornetq-rest/examples/javascript-chat/src/main/webapp/index.html
===================================================================
--- trunk/hornetq-rest/examples/javascript-chat/src/main/webapp/index.html	2011-05-02 17:36:57 UTC (rev 10583)
+++ trunk/hornetq-rest/examples/javascript-chat/src/main/webapp/index.html	2011-05-02 18:22:34 UTC (rev 10584)
@@ -50,12 +50,17 @@
                 {
                     if (xhr.status == 200)
                     {
+                       // getting the links from the rest resource
                        topicSender = xhr.getResponseHeader("msg-create");
                        subscriptions = xhr.getResponseHeader("msg-pull-subscriptions");
+
+                       // just adding the report
                        document.getElementById("errors").innerHTML = "Subscriptions URL: " + subscriptions;
                     }
                 }
             }
+            
+            // this will send the request from javascript
             xhr.send(null);
         }
 
@@ -162,4 +167,4 @@
 </pre>
 
 </body>
-</html>
\ No newline at end of file
+</html>



More information about the hornetq-commits mailing list