I hope.. ur using static div's for response text... right!!!
Make some relations for those ids...
like..
div_content_details_1,
div_content_details_2
div_content_details_3.. and etc.,
if u might know that ur using three divs
then declare one global javascript variable
assign value like
/**/
var xmlHttp;
var id_to_disp;
function showDetails(str, control) // here itself u deside which div u want to use
{
if(control.name="control1") {
id_to_disp = 'div_content_details_1';
}
.......
document.getElementById(id_to_disp).innerHTML=xmlHttp.responseText
..
/**/
Sorry if anything wrong... bcoz i might not know wt ur thinking
Thanks,
VinothKumar.C
<snipped>
Last edited by peter_budo : Apr 26th, 2008 at 3:33 pm. Reason: 1)Please use [code] tags. 2) Please do not use "leet" speak or "chatroom" speak. 3) No emails or phone numbers in posts!