sir,
thanks for your help
can you suggest me some other way to make it function because i m not able to display the pic
i m posting the code for reference
the td area marked as red is where i want to put the image
it wud be really kind of you if you can help me in this regard
Code:
function getSearchResults()
{try
{
var para = document.getElementById("txtSearchPara").value;
var dbfile = getDBFile();
var cn = new ActiveXObject("ADODB.Connection");
var strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source ="+ dbfile+ ";Persist Security Info=False";
cn.Open(strConn);
var rs = new ActiveXObject("ADODB.Recordset");
var SQL = "select * from test where " +
"clid like '%" + para + "%' or " +
"tel2 like '%" + para + "%' order by clid desc";
rs = cn.Execute(SQL);
var resultString = "<table>";
resultString = resultString + "<tr> " +
"<td></td>" +
"<td></td>" +
"<td></td>" +
"</tr>" ;
var a1;
var a2=0;
var color;
var bcolor;
while (!rs.EOF )
{
color="#348781"; // green colour
bcolor="white";
resultString = resultString + "<tr> " +
"</tr>" +
"</table>" +
"<table>" +
"<tr>" +
"<td>" +"Stitching Number-"+ rs("clid")+"</td>"+
"<td>" + "Trial Date-" + rs("tdat")+ "</td>" +
"<td>" + "Delivery Date-" +rs("ddat")+ "</td>"+
"</tr>";
rs.MoveNext();
}
resultString = resultString + "</table>";
rs.Close();
cn.Close();
document.getElementById("SearchResultPanel").innerHTML=resultString;
}
catch (e)
{
alert ("getSearchResults() : " + e);
}
}
</script>
</head>
<body onload= getSearchResults(); >
<div>
<table >
<tr>
<td>
<input type="text" name="txtSearchPara" tabindex="19" onblur = "getSearchResults();">
</td>
</tr>
<tr>
<td><SPAN id= "SearchResultPanel" style = "position: relative; width: 100%; "></SPAN>
</td>
when i try to use ur code inside that td box it does not show any thing on page .must be some other way to do this thing
pls help
smile always
anand
Bookmarks