Results 1 to 2 of 2

Thread: Dynamically Adding Tooltips and DD's Sticky Tooltip Script

  1. #1
    Join Date
    Mar 2015
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Dynamically Adding Tooltips and DD's Sticky Tooltip Script

    I've implemented Dynamic Drive's Sticky Tooltip Script (Found here: http://www.dynamicdrive.com/dynamici...ckytooltip.htm) and have it working just fine.

    However, when I create additional elements via JS and related tooltips, the new tooltips don't show up though the content of said tooltip is added to the proper div and in the proper format.

    I suspect this is because the sticky tooltip script is doing some "magic" that I don't understand on init that is missing for the new elements I've created.

    My question is: How can I add new elements and related tooltips to my page and have the tooltip work?

    Thanks for any advice.

    Note: I've tried putting the call to "stickytooltip.init("*[data-tooltip]", "mystickytooltip"); after my newly created elements, but to no avail.
    Last edited by moab; 03-24-2015 at 04:52 PM.

  2. #2
    Join Date
    Jul 2008
    Location
    Derbyshire, UK
    Posts
    3,033
    Thanks
    25
    Thanked 599 Times in 575 Posts
    Blog Entries
    40

    Default

    Wild stab in the dark because I'm not sure what you're doing exactly - maybe you can glean what you need from these: http://stackoverflow.com/a/12022181 and http://stackoverflow.com/a/15090957

    If you need more help, please provide a link to your page.
    Focus on Function Web Design
    Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps

Similar Threads

  1. Sticky Tooltip script - not sticky
    By jscheuer1 in forum Bug reports
    Replies: 0
    Last Post: 11-09-2010, 03:01 PM
  2. Sticky Tooltip script
    By cavenj in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 11-08-2010, 12:32 PM
  3. Sticky Tooltip script - single page for tooltips
    By messudieh in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 11-04-2010, 09:28 PM
  4. Sticky Tooltip script
    By HaLiLL in forum CSS
    Replies: 2
    Last Post: 06-01-2010, 09:10 PM
  5. Resolved Sticky Balloon Tooltips
    By littlehotels in forum Dynamic Drive scripts help
    Replies: 4
    Last Post: 03-30-2010, 04:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •