Permalink
Browse files

add README

  • Loading branch information...
1 parent b27ad13 commit 27e9549f731919c55a13e0b94a48f66924c613a3 @gonzalo123 committed Mar 11, 2011
Showing with 23 additions and 0 deletions.
  1. +23 −0 README
View
@@ -0,0 +1,23 @@
+Lazy comet with PHP.
+Simple implementation of lazy comet PHP.
+
+NovComet.subscribe('customAlert', function(data){
+ console.log('customAlert');
+ //console.log(data);
+}).subscribe('customAlert2', function(data){
+ console.log('customAlert2');
+ //console.log(data);
+});
+
+$(document).ready(function() {
+ $("a.customAlert").click(function(event) {
+ NovComet.publish('customAlert');
+ });
+
+ $("a.customAlert2").click(function(event) {
+ NovComet.publish('customAlert2');
+ });
+
+ NovComet.run();
+
+});

0 comments on commit 27e9549

Please sign in to comment.