show tooltip dynamically

Hi ,

 I have to show dynamic tool-tip in my code .but when i show using Ajax then it give me error "this.cells is not a  function" please tell me what i do . i have to show all the name description from database like when i mouse-over the category then it will show me description of that category.  i am sending you my code please tell me the solution.

function sortGridOnServer(ind,gridObj,direct){
mygrid.clearAll();
mygrid.loadXML(gridQString+(gridQString.indexOf("?")>=0?"&":"?")+“orderby=”+ind+"&direct="+direct);
mygrid.setSortImgState(true,ind,direct);
return false;
}
var mygrid = new dhtmlXGridObject(‘products_grid’);
mygrid.setImagePath(“<?php echo base_url();?>public/js/codebase/imgs/”);
mygrid.setHeader(“Catgeory,Subcategory,Subsubcategory,Tutorial Name,File Name”);
mygrid.attachHeader("#select_filter,#select_filter,#select_filter,#select_filter,#select_filter")
mygrid.setInitWidths(“150,150,150,150,300”);
mygrid.setColAlign(“left,left,left,left,left,right”);
mygrid.setColSorting(“str,str,str,str,str,str”);
mygrid.setColTypes(“ed,ed,ed,ed,ed,ed”);
mygrid.enableLightMouseNavigation(true);
mygrid.setSkin(“modern”);
mygrid.enableSmartRendering(true)
mygrid.enableMultiselect(true)
mygrid.init();
mygrid.enableSmartRendering(true);
//gridQString = “<?php echo base_url();?>category_module/show_data”;//save query string to global variable (see step 5 for details)

											mygrid.loadXML("<?php echo base_url();?>public/dhtmlx_file/get.php");	//used just for demo purposes

//============================================================================================
myDataProcessor = new dataProcessor(“<?php echo base_url();?>public/dhtmlx_file/update.php”); //lock feed url
myDataProcessor.init(mygrid); //link dataprocessor to the grid

										mygrid.attachEvent("onMouseOver", function(id,ind)
											{
												
												
												if (window.XMLHttpRequest)
												  {// code for IE7+, Firefox, Chrome, Opera, Safari
												  xmlhttp=new XMLHttpRequest();
												  }
												else
												  {// code for IE6, IE5
												  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
												  }
												xmlhttp.onreadystatechange=function()
												  {
												  if (xmlhttp.readyState==4 && xmlhttp.status==200)
													{
														//alert(ind);
														//alert(xmlhttp.responseText);
														if (ind == 0)
														this.cells(id,ind).cell.title =xmlhttp.responseText;
													}
												  }
												
												xmlhttp.open("GET","<?php echo base_url();?>public/dhtmlx_file/getdata.php?q="+id,true);
												xmlhttp.send();
												
												
												
											});

getdata.php

<?php require_once('config.php'); echo $_REQUEST['q']; ?>

Thanks in advance

please reply me as soon as possible.

– xml <cell title=‘some title’ …>

grid.attachEvent(“onMouseOver”, function(id,ind) {
var cellITitle = this.cells(id,ind).getAttribute(‘title’);
if (typeof cellITitle != ‘undefined’) {
this.cells(id,ind).cell.title = cellITitle ;
}
return true;
});

grid.attachEvent(“onMouseOver”, function(id,ind) {
var cellITitle = this.cells(id,ind).getAttribute(‘title’);
if (typeof cellITitle != ‘undefined’) {
this.cells(id,ind).cell.title = cellITitle ;
}
// return true; // no return !!!
});

hi ,
Thanks in Advance

but i don’t want the same code in tool tip . i want some other data in tool tip when i mouse over the name only that time that data is display and that data i have fetch from database. and show it here. i thought now you understand what i want . please give me any solution on this problem