title: pusher and rails updating a div
body: <p>When a push is recieved I want it to update a div.
  I don't understand javascript that well, but this is what i've got so far.</p>
  
  <pre><code>#subscription
  
  var pusher = new Pusher('&lt;%= Pusher.key %&gt;');
  var channel = pusher.subscribe('test_channel');
  channel.bind('greet', function(data) {
    $("#data.greeting").load(location.href + " #data.greeting");
   });
  
  #trigger
  
  &lt;%= Pusher['test_channel'].trigger('greet', {  :greeting =&gt; "present"}) %&gt;
  </code></pre>
  
  <p>#present is the div im trying to update in this example. the trigger works, but nothing happens on the sub end</p>