PDA

View Full Version : Speech Bubbles Tooltip and event handlers



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?

jscheuer1
09-23-2012, 05:14 AM
Please include a link to the page on your site that contains the problematic code so we can check it out.

Vick
02-27-2015, 08:01 PM
Hello, I am getting this error while trying to use this feature. Not sure how to fix this. Any help is greatly appreciated.

0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'speechbubble'

Thanks, Vick.

Vick
02-28-2015, 01:25 AM
Ignore. File Names were spelled wrong. Now it is working for me. Thanks.