Advanced Tooltips Support Product Page

Solved

Tooltip only showing first result of a dataset.

Reported 05 Feb 2014 18:28:05
1
has this problem
05 Feb 2014 18:28:05 Steven Milo posted:
I have my data returning fine and the tooltip working. The tooltip is only returning the first record, no matter what result I rollover from the dataset. The dive shows the results for each record fine. Just can't, get the tooltip to display the div for each record.
thanks

Replies

Replied 06 Feb 2014 10:37:39
06 Feb 2014 10:37:39 Teodor Kuduschiev replied:
Hi Steven,
Can you please provide a link to your page?
This reply was removed on 2/7/2014 2:27:36 AM.
See the changelog
Replied 06 Feb 2014 17:08:04
06 Feb 2014 17:08:04 Teodor Kuduschiev replied:
Well you are currently using the same id for the user details for each user:
<div id="usrDetailsFnl">

You can just use this in your tooltip:
{{firstName}}, {{lastName}}
                {{adr}} <br />
                {{city}} , {{state}} &nbsp;{{zip}} <br />
                {{phone}}

You can also check this video: www.youtube.com/embed/TlVysU1ejOI?2292&autoplay=1&hd=1
Replied 06 Feb 2014 17:28:59
06 Feb 2014 17:28:59 Steven Milo replied:
Watched the video a couple of times. Unsure of what you mean? I have not hidden the div yet because I was checking to make sure the data came back correctly. here is my code. Can you please show me where you mean?

thanks
//Code removed by Admin//
Replied 06 Feb 2014 18:38:13
06 Feb 2014 18:38:13 Teodor Kuduschiev replied:
What i mean is that inside your repeat region you have an element having an id="usrDetailsFnlB" , which repeats as many times as your records are, which is wrong. You cannot have one id more than one time on a page, the ids must be unique. And this, of course confuses the tooltip.
What i mean is - you just don't need to show a hidden div inside the tooltip, but just move the content that is inside the hidden div into the tooltip.
Replied 06 Feb 2014 18:51:58
06 Feb 2014 18:51:58 Steven Milo replied:
Got it Thank you. It worked.

Reply to this topic