paul_m
09-19-2012, 03:53 PM
Referring to this script (which is excellent by the way)
http://www.dynamicdrive.com/dynamicindex5/speechbubblestooltip.htm
I have implemented it without problem, embedding it within a third-party web application. However I have noticed that the script will stop working when certain other events fire on the page. For example a drop down menu in the application will reload a data table embedded in the page and after that the tooltip will not work.
I notice the script is called like this:
jQuery(function($){ //on document.ready
$('a.addspeech').speechbubble({url:'speechdata.txt'})
})
So maybe it is possible to get it to use other event handlers other than document.ready? Does jQuery have other events to which this could be attached?
My knowledge of JS used to be pretty good but I've been out of the game for a few years so don't have any experience with AJAX in order to debug this myself.
Can anyone help?
http://www.dynamicdrive.com/dynamicindex5/speechbubblestooltip.htm
I have implemented it without problem, embedding it within a third-party web application. However I have noticed that the script will stop working when certain other events fire on the page. For example a drop down menu in the application will reload a data table embedded in the page and after that the tooltip will not work.
I notice the script is called like this:
jQuery(function($){ //on document.ready
$('a.addspeech').speechbubble({url:'speechdata.txt'})
})
So maybe it is possible to get it to use other event handlers other than document.ready? Does jQuery have other events to which this could be attached?
My knowledge of JS used to be pretty good but I've been out of the game for a few years so don't have any experience with AJAX in order to debug this myself.
Can anyone help?