Hi,
I have a probleme when i use a refresh fonction for my tabbar content (with httprequest).
I hope you can help me.
This picture is before resheshing :
And now after nearly 20 refresh :
I use this html method to init tabbar :
<div align="right" style="width:595px; height:14px"><input type="button" value="Refresh" class="inpBack" onClick="LoadDiv('force')"/></div>
<div id="a_tabbar" style="width:595px; height:300px;" class="dhtmlxTabBar" imgpath="/tools/dhtmlxTabbar/codebase/imgs/" oninit="setactivtab();LoadDiv('')" onClick="LoadDiv('')">
<div id="a0" name="About user" width="120px">Some html code (static)</div>
<div id="a1" name="Communications ([COUNT])" style="width:120px"></div>
<div id="a2" name="Attachment ([COUNT])" style="width:120px"></div>
<div id="a3" name="Tasks ([COUNT])" style="width:120px"></div>
</div>[/code]
This is my httprequestion fonction :
[code]function refreshDiv(Div,Url,Count){
s=Url;
loader = dhtmlxAjax.getSync(s);
s=loader.xmlDoc.responseText;
document.getElementById(Div).innerHTML=s;
p=Count;
loader = dhtmlxAjax.getSync(p);
p=loader.xmlDoc.responseText;
eval(p);
};
And this is my refresh tabbar function for 1 exemple of refreshing :
[code]function LoadDiv(vval){
if ((a_tabbar.getActiveTab()=="a3") && ((document.getElementById("a2").innerHTML=="") || (vval=='force'))){
refreshDiv("a3","http://127.0.0.1/SOME PATH","http://127.0.0.1/SOME PATH"+'a_tabbar.setLabel("a3", "Tasks ([$COUNT])");');
};
};[/code]
Can you, please, help me to solve this?
Thank you!