Consider:
in highslide.js
Code: Select all
preserveContent : false, // Preserve changes made to the content and position of HTML popups.
cacheAjax : true, // Cache ajax popups for instant display. Can be overridden for each popup.
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="/highslide.css">
<script src="/highslide.js" type="text/javascript"></script>
</head>
<body>
<script type="text/javascript"> <!--
alert('You should only see this once, but you are going to see it twice.');
// --></script>
<a href="/a_faq_for_example.html#q1" onclick="return hs.htmlExpand(this,{src:'/faq.shtml#Q1a',objectType:'ajax',align:'center',minWidth:400},{headerText:'Answer to FAQ.'})" title="Read the answer to a FAQ.">Click me for the ajax loaded answer from a large FAQ.</a>
</body>
</html>
Conversely, setting cacheAjax to false causes inline javascript to run every time a highslide link is clicked. Change it to false in the code above, and reload. Click the link and you'll get the javascript alert every time.
Any fix?