Thank you Tony,
Please see my code below. Where should I reload the grid?
var xmlHttpdata;
function getMessagedata()
{
//in this panel I have the
document.getElementById(“PanelTable1”).style.display = “inline”;
var persontxt = document.getElementById(“txtasf”).value;
if(window.ActiveXObject)
{
xmlHttpdata=new ActiveXObject(“Microsoft.XMLHTTP”);
}
else if (window.XmlHttpRequest)
{
xmlHttpdata=new XMLHttpRequest();
}
//call my WebService
xmlHttpdata.open(“get”, “http://……?txtname=” + persontxt + “”,true);
xmlHttpdata.onreadystatechange=doUpdatedata;
xmlHttpdata.send(); return false;
}
function doUpdatedata()
{
if(xmlHttpdata.readyState==4)
{
if (xmlHttpdata.status == 200) {
//document.getElementById(“lblHTMLOutput”).innerHTML = “”;
var xmlDocdata =xmlHttpdata.responseXML.xml;
var newmystr = xmlDocdata.toString();
var mystr = xmlDocdata.toString();
//alert(mystr);
$(document).ready(function(){
$(“#tabledata1”).jqGrid({