I explain better:
On the web page I have a div that acts as a container and 4 data link.
Whenever I click on a link on div are stored data through a document.getElementById ( 'p').innerHTML = 'data_1';
Example:
JS
Code: Select all
<script type="text/javascript" src="highslide/highslide-with-html.js"></script>
<script language="javascript">
hs.graphicsDir = 'highslide/graphics/';
hs.outlineType = 'rounded-white';
hs.outlineWhileAnimating = true;
function prova(valore, valore_2){
if (valore_2 == 1){
document.getElementById('dati').innerHTML = " dati _1";
hs.htmlExpand(valore, { contentId: 'highslide-html' });
}else{
document.getElementById(' dati ').innerHTML = " dati _2";
hs.htmlExpand(valore, { contentId: 'highslide-html' });
}
}
</script>
Code: Select all
<a href="#" id="link_1" onclick="return prova(this, 1);" class="highslide">HTML content</a>
<br /><br />
<a href="#" id="link_2" onclick="return prova(this, 2);" class="highslide">HTML content</a>
<div class="highslide-html-content" id="highslide-html">
<div class="highslide-header">
<ul>
<li class="highslide-move">
<a href="#" onclick="return false">Move</a>
</li>
<li class="highslide-close">
<a href="#" onclick="return hs.close(this);">Close</a>
</li>
</ul>
</div>
<div class="highslide-body" id="dati">
</div>
<div class="highslide-footer">
<div>
<span class="highslide-resize" title="Resize">
<span></span>
</span>
</div>
</div>
</div>
Code: Select all
<a href="#" id="link_1" onclick="return prova(this, 1);" class="highslide">HTML content</a>
On div is inserted -> dati_1
If I click on the second link
Code: Select all
<a href="#" id="link_1" onclick="return prova(this, 1);" class="highslide">HTML content</a>
On div is first inserted and then -> dat1_2 after apertuta window, dati_2 is replaced with -> dati_1
The library uses a cache to store data already? If it is, how do I turn it off?