All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.wicketstuff.push.cometd.CometdPushSubscribeTemplate.js Maven / Gradle / Ivy

There is a newer version: 1.5-RC5.1
Show newest version
history.navigationMode = 'compatible'; // Opera onUnload support

(function () {
  var subscribe = function() {
    try {
      if (!Wicket.Push.cometd.isDisconnected()) {
        subscription=Wicket.Push.cometd.subscribe('/${COMETD_CHANNEL_ID}', onEventFor${COMETD_CHANNEL_ID});
        Wicket.Event.add(window, "unload", function(event) { Wicket.Push.cometd.unsubscribe(subscription);});
        return;
      }
    } catch (x) { /* ignore */ }
   setTimeout(subscribe, 100);
  };
  subscribe();
})();




© 2015 - 2024 Weber Informatics LLC | Privacy Policy