i have made the jQuery version of comet before, this is what i had done:
var comet = {
    connection   : false,
    iframediv    : false,
    initialize: function(){
        // For other browser (Firefox...)
        comet.connection = $('<iframe>');
        comet.connection.attr('id', 'comet_iframe');
        comet.connection.css( {
          left       : "-100px",
          top        : "-100px",
          height     : "1px",
          width      : "1px",
          visibility : "hidden",
          display    : 'none'
        })
        //comet.iframediv = $('<iframe>');
        comet.connection.attr('src', 'backend.php');
        //comet.connection.append(comet.iframediv);
        $('body').append(comet.connection);
    },
    // this function will be called from backend.php
    printServerTime: function (time) {
      console.log('time',time);
      $('#content').html(time);
    },
    onUnload: function() {
      if (comet.connection) {
        comet.connection = false; // release the iframe to prevent problems with IE when reloading the page
      }
    }
  }
  $(window).load(comet.initialize)
           .unload(comet.onUnload);
i had taken the code right off that page and made it jquery ^_^