Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
updatePosition() works only once
10th May, 19:30 (This post was last modified: 10th May 19:32 by alexp.)
Post: #1
updatePosition() works only once
Hi,

I'm using qtip 1.0 rc3 and I have a problem on a page that contains an iframe in it. My qtip is located on the parent page and there's a script in the child iframe that dynamically adds content to the qtip. This causes the height of the qtip to increase so there's need to call updatePosition() every time that function in the iframe's script is called:

JS Code
//dinamically adds content to a div contained in parent page's qtip
window.parent.$('#pnlVotingGrid').html(table); 
//since the previous line pushed the qtip down, its position needs to be readjusted
window.parent.$('.qtip').qtip('api').updatePosition();


The problem is that this works only the first time. If I close the qtip with
JS Code
$('.qtip').qtip('hide')
the next time I open it, updatePosition() doesn't seem to work, and there are no javascript errors. I should also mention that I have set clone: false and onRender removes the content that's added in content.text. That way I'm able to reuse the same qtip multiple times and just vary its content. Not sure if this is related to the updatePosition() issue.

Thanks,
-Alex
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Qtip works but not always [stuck tooltip and sometimes not showing] bittyme 5 802 15th August 00:14
Last Post: bittyme
  [Solved] code works in FF but not IE/ Opacity problem ictman1105 3 1,146 20th June 17:20
Last Post: Craig
  [Solved] qTip works on all pages except the homepage luukratief 10 849 8th June 08:24
Last Post: luukratief
  [Solved] Works in IE7 initially, but then throws error tingiri 1 668 1st March 15:18
Last Post: Craig
  [Solved] qtip on button click don't works Yann39 4 1,607 2nd December 10:21
Last Post: Yann39
  Loading Image Demo works, mine doesn't antijorge 1 793 4th November 17:59
Last Post: antijorge
  Qtip works in Firefox chrome and safari but not IE7 ctecha 2 1,897 26th October 23:52
Last Post: Craig
  Disable works intermittently ccrook 1 697 9th May 12:56
Last Post: Craig
  [Solved] disable method only works with one type of scenario? obiwanchinobi 2 985 15th January 09:37
Last Post: obiwanchinobi
  Works in FF & Crome, but not IE Aspire 6 1,142 9th September 11:26
Last Post: Craig



User(s) browsing this thread: 1 Guest(s)