|
qtip on element called with Ajax
|
|
30th August, 08:36
(This post was last modified: 30th August 08:38 by sisilone.)
Post: #1
|
|||
|
|||
|
qtip on element called with Ajax
Hello,
I've a class of elements to which I want to attach qtip. Well this works for static elements, but obviously not on the elements, of the same class, called through Ajax. Is it possible to attach qtip also to the element called with ajax, like a method .live(), without add code for each script called async? Share information about cities on KooKooZa! |
|||
|
1st September, 18:12
Post: #2
|
|||
|
|||
|
RE: qtip on element called with Ajax
I'm assuming you are using an ajax function like $.ajax or $.post or $(id).load??
All you have to do is reattach the qtip to your elements in the success callback with jQuery's each function. JS Code
I hope this helps
|
|||
|
2nd September, 08:11
Post: #3
|
|||
|
|||
|
RE: qtip on element called with Ajax
thank you for your answer, but it's a bad thing...I've to attach this function for every async request...
As I said I use tooltip for a specific class of elements and I create them calling a php function, I can write in this function the qtip code to attach the tooltip. I'll have n identical script for n elements of that class...it's not an elegant way...
Share information about cities on KooKooZa! |
|||
|
2nd September, 12:31
Post: #4
|
|||
|
|||
|
RE: qtip on element called with Ajax
sisilone, if you're planning on using qTip with the .live() methods I'd definitely suggest you take a look at porting your code over to the 2.0 releases. 1.x releases are quite resource heavy and can slow down your page quite bit if you have lots of them bound.
If you do move over to 2.0, you can use this as a starting point: JS Code
You can grab 2.0 here: http://github.com/craga89/qtip and the documentation here: http://craigsworks.com/projects/qtip_new/docs/ Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)

Search
Member List
Calendar
Help





