dkap
06-06-2011, 10:14 PM
Long-time Dynamic Drive script user, first time forum poster...
1) Script Title: Sticky Tooltip script
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex5/stickytooltip.htm
3) Describe problem:
The script works great except for one thing I haven't been able to sort out. I'm using it in conjunction with a navigable weekly calendar, with the weekly navigation being handled by ajax so the overall page doesn't have to reload.
The problem is, the tooltip script does not operate on subsequent pages (i.e. navigating to a week other than the current one). There are not any JavaScript errors. It simply does nothing when hovering over one of the events.
Note: I also toyed with "Drop down/ Overlapping Content script" and it behaved the same way, so it's more a JavaScript issue than specific to this script. However, the "DHTML tooltip script" works fine within ajax, the difference being that that script doesn't require initialization of the content div's.
http://dynamicdrive.com/dynamicindex5/overlapcontent.htm
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
(The obvious question would be, why not just use the latter? It lacks the desired functionality of making the hover content sticky for clicking on event links within it.)
Along that line of reasoning, I tried moving Sticky Tooltip script's stickytooltip.js include to the ajax file to see if reloading it with each weekly navigated page request would reinitialize the necessary functions. Worked on the initial week but not any subsequent ones; same as before.
Any ideas?
Here's the test page, bottom of the News, Highlights & Promotions box:
http://www.activesalem.com/test2.php
Edit: You can confirm that the data is properly being assembled by viewing the source code of the underlying page for a previous week here:
http://activesalem.com/activities/week_overview.php?y=2011&m=5&d=29
Thanks,
Dan
1) Script Title: Sticky Tooltip script
2) Script URL (on DD): http://dynamicdrive.com/dynamicindex5/stickytooltip.htm
3) Describe problem:
The script works great except for one thing I haven't been able to sort out. I'm using it in conjunction with a navigable weekly calendar, with the weekly navigation being handled by ajax so the overall page doesn't have to reload.
The problem is, the tooltip script does not operate on subsequent pages (i.e. navigating to a week other than the current one). There are not any JavaScript errors. It simply does nothing when hovering over one of the events.
Note: I also toyed with "Drop down/ Overlapping Content script" and it behaved the same way, so it's more a JavaScript issue than specific to this script. However, the "DHTML tooltip script" works fine within ajax, the difference being that that script doesn't require initialization of the content div's.
http://dynamicdrive.com/dynamicindex5/overlapcontent.htm
http://www.dynamicdrive.com/dynamicindex5/dhtmltooltip.htm
(The obvious question would be, why not just use the latter? It lacks the desired functionality of making the hover content sticky for clicking on event links within it.)
Along that line of reasoning, I tried moving Sticky Tooltip script's stickytooltip.js include to the ajax file to see if reloading it with each weekly navigated page request would reinitialize the necessary functions. Worked on the initial week but not any subsequent ones; same as before.
Any ideas?
Here's the test page, bottom of the News, Highlights & Promotions box:
http://www.activesalem.com/test2.php
Edit: You can confirm that the data is properly being assembled by viewing the source code of the underlying page for a previous week here:
http://activesalem.com/activities/week_overview.php?y=2011&m=5&d=29
Thanks,
Dan