views:

86

answers:

0

Hello, I'd like to find a fay to use Qtip in an iFrame on my page. I found a way to use QTIP on an iframe, but not with JQUERY LIVE....

qTip through an iFrame: http://craigsworks.com/projects/forums/thread-question-qtip-through-iframe

Any ideas on how to apply JQUERY Live to that?

My current code:

$('iframe').load(function(){
  $(this).qtip(
  {
    content: 'My first Qtip! Look mom!',
    show: {
      when : {
         target: $(this).contents().find('.tipoff') // Element within the iframe
      }
    },
    hide: {
      when : {
         target: $(this).contents().find('.tipoff') // Element within the iframe
      }
    }
  });
});

Thanks