|
[Solved] Reload qtip with new items
|
|
10th October, 11:04
Post: #1
|
|||
|
|||
|
[Solved] Reload qtip with new items
Hi,
first of all, thanks for the plugin, it´s fantastic... ![]() My question... I change content dinamically and when I load a new content that match with the jquery selector, tooltips not work... For example: HTML Code JS Code
JS Code JS Code
When I click the button, the class it´s added correctly to the div, but the tooltip not show... How can I "reinitialize" the tooltip for the new element?? P.D: I´m not english.. I hope explained well..
|
|||
|
27th October, 00:09
Post: #2
|
|||
|
|||
|
RE: Reload qtip with new items
Randolf, you could use the .live() methods:
JS Code
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
20th November, 13:43
Post: #3
|
|||
|
|||
|
RE: Reload qtip with new items
Sorry, I've been very busy.
I didn´t know the existence of the live() method. It worked perfectly!! Thanks very very much. |
|||
|
8th April, 14:54
Post: #4
|
|||
|
|||
|
RE: Reload qtip with new items
A couple of updates on this -- I am dynamically refreshing a datatable and needed to have the qtips show up on the new lines. I needed to make a couple of changes to the following to make it work for all dynamically added items:
1) Changed the check on whether the tooltip exists by using typeof(), so it became: if( typeof( $(this).data('qtip') ) == 'object' ){ return; } 2) The second problem is that although this created the qtip with the first mouseover, it didn't display it until the second mouseover. To address that, I added the following after the qtip call which forces a display after the qtip is added: $(this).qtip('show'); Hope that helps! daden (27th October 00:09)Craig Wrote: Randolf, you could use the .live() methods: |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Reload from div | tacotijsma | 6 | 981 |
26th June 19:54 Last Post: tacotijsma |
|
| [Solved] Add Reload to Button | otti.steinhauer | 3 | 776 |
29th February 19:31 Last Post: Craig |
|
| [Solved] force dynamic content reload | jackie135 | 6 | 3,767 |
13th March 20:59 Last Post: threadbaron |
|
| [Solved] Reload a tooltip with a onClick | steinfield | 2 | 1,579 |
28th November 21:30 Last Post: Craig |
|
| [Solved] qTips Stick Around After Reload | ljarmin | 1 | 1,070 |
2nd February 21:16 Last Post: Craig |
|
| Swap tooltip without page reload | lincolnporter | 1 | 835 |
12th January 23:22 Last Post: Craig |
|
| Parent Page Reload | briandaly40 | 1 | 1,084 |
2nd September 14:14 Last Post: Craig |
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





