Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 !
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
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 !
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
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) Huh
Find all posts by this user
Quote this message in a reply
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
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Solved] Dynamic Content From Page Element frogg3862 2 89 3rd May 17:12
Last Post: frogg3862
  [Solved] Show on click, hide on unfocus ttomor 4 149 3rd May 14:39
Last Post: ttomor
  [Solved] qtip showing content from db doesn't change when content in db changes. vtoepel 2 144 23rd April 16:02
Last Post: vtoepel
  [Solved] Hovering over same tip location causes it to hide jaredf 1 280 22nd March 14:52
Last Post: Craig
  can't hide qtip in a “position: absolute;” div shdog 1 275 14th March 17:35
Last Post: Craig
  js only show admeis 1 274 6th February 18:00
Last Post: Craig
  hide on unfocus in build 55 bradw2k 1 338 20th January 17:03
Last Post: Craig
  Dynamic contenct not working property in sortable cleung 5 733 8th December 18:45
Last Post: Craig
  [Solved] dynamic tipcreation alnikitich 1 447 8th December 18:29
Last Post: Craig
  [Solved] Is there an easier way to show/hide tooltips dynamically? gloosemo 1 676 17th October 15:58
Last Post: Craig



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