Just to clear things up in case I mis-spoke, the script for the speech bubbles works (awesome by the way!). It's just that I receive an ajax error message that's only caused when I use this script. I also want to suggest that maybe it's not the script that's in error, but perhaps a combination of this script along with other scripts that's causing the problem. But, when I do delete this script, I don't get the Ajax error; hence my question related to this script.
The error occurs when you visit the site this way:
http://ruggedradios.com
versus visiting the site this way
http://www.ruggedradios.com
If I were to use the full path as you showed, rather than relative, the ajax error manifests again when customers move to the secure "https" checkout portion of my site. For the moment, it's easier to use the relative path, but still, it's a minor error warning I'd like to figure out. If it helps, here's the scripts in my header. Maybe it's a conflict or the order that these are sorted that's adding to the problem:
Code:
<script type="text/javascript" src="scripts/jquery.min.js" language="javascript"></script>
<script type="text/javascript" src="/scripts/fadeslideshow.js"></script>
<script type="text/javascript" src="js/prototype.js"language="javascript"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"language="javascript"></script>
<script type="text/javascript" src="js/lightbox.js"language="javascript"></script>
<script type="text/javascript" src="/scripts/swapimage.js"language="javascript"></script>
<script type="text/javascript" src="Tooltip/speechbubbles.js" language="javascript"></script>
<script>
// JavaScript Document
jQuery(function($){ //on document.ready
//Apply tooltip to links with class="addspeech", plus look inside 'speechdata.txt' for the tooltip markups
$('a.addspeech').speechbubble({url:'/Tooltip/speechdata.txt'})
})
</script>
Bookmarks