|
Show/Hide according to dynamic content ?
|
|
14th January, 21:57
Post: #1
|
|||
|
|||
|
Show/Hide according to dynamic content ?
Hi everyone !
I'm wondering if it's possible to show for example only the 3 tooltips with the 3 most important query results, and to hide all the others ? In other words if each tooltip content is loaded dynamically with the same request ordering somthing by number, can we show only the tooltips with the results 1,2,3, and hide the tooltips with the results 4,5,6,7 [...] ? Amazing help job by the way, thanks ! |
|||
|
18th January, 14:42
Post: #2
|
|||
|
|||
|
RE: Show/Hide according to dynamic content ?
Lyreco, can you explain why you'd need this? Seems like a better way would be to just selectively choose which id to pass on in your data. If it's greater than 3 don't make a qtip etc.
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
18th January, 16:45
Post: #3
|
|||
|
|||
|
RE: Show/Hide according to dynamic content ?
Does it mean it is not possible ? Maybe I don't understand the functions of show and hide.
I've got a mosaic of images corresponding to types of products. I want to put the light on the 3 products which have the best price results for example ( so 3 tooltips initially shown when the page is loaded ). For the others, the tooltips will be shown with the passage of the mouse. I can't choose which element will be shown in advance because the results ( and the best prices) change all the time ! Hope you'll understand. Thanks ! |
|||
|
18th January, 17:27
Post: #4
|
|||
|
|||
|
RE: Show/Hide according to dynamic content ?
Hmm... is the price located in the remote content? Is there any way you can tell in advance which products have the best price? Or any way you could apply, say, an attribute to those 3 product elements so you can detect them?
Craig Thompson Web Developer / Designer Craigsworks http://www.craigsworks.com |
|||
|
18th January, 18:07
(This post was last modified: 18th January 18:09 by Lyreco.)
Post: #5
|
|||
|
|||
|
RE: Show/Hide according to dynamic content ?
The prices are in my database but change every day on my website. The price can change in fact any time : the element which have the best price is not predictable. The images representing the product have to be on the same place on the page, it is an essential condition.
But I can make a request which says to me what are the products which have the 3 better prices. Then they are linked to the images (which show tooltips). So I can find the id attribute of the 3 images to be shown. From there maybe it's possible to do something (with a variable)
|
|||
|
19th January, 12:19
Post: #6
|
|||
|
|||
|
RE: Show/Hide according to dynamic content ?
Well once you know which images are to have qTips applied you can filter them accordingly no? The easiest method I can see is during the print out of your images for the homepage (I assume PHP?) you can add in a check that adds another element attribute such as "popular" so that you can filter the 3 you want using a jQuery selector.
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




