Hi All,
I have some problem in innerHtml. I have the textbox in innerHtml, In the innerHtml textbox was read only. I want make it to enable. if user enter the text that text will be retrieved, so i want to be enable text box. Another one problem is the the innerhtml will be in like popup window. it will automatically closed.i want be whenever i click close button that time only it will close. Please help me.
here is the Code
[HTML]<html>
<body>
<script type="text/javascript">
function show_popup23()
{
var p=window.create Popup();
var pbody=p.documen t.body;
//pbody.style.fil ter="alpha(opac ity=100)" ;
pbody.style.fon tSize="10px";
pbody.style.ali gn="center";
pbody.style.fon tFamily="Verdan a, Arial, Helvetica, sans-serif";
pbody.document. body.innerHTML= oToolTip.innerH TML;
p.show(0,0,800, 500,document.bo dy);
}
</script>
<a onClick="show_p opup23()">Click Me</a>
<div id="oToolTip" style="display: none; ">
<div id="block" style=" vertical-align:middle; width:100%; height:100%; border:2px solid black; filter:progid:D XImageTransform .Microsoft.Grad ient(GradientTy pe=0, StartColorStr=# cdcdcd, EndColorStr=#FF FFFF); padding:0px">
<table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" bordercolor="00 0000" align="center" class="txttype1 " >
<tr bgcolor="#9B9AB 7"><td colspan="4" height="1px"></td></tr>
<tr><td align="center" valign="middle" >
<table class="txttype1 " border="0" bordercolor="#0 00000" cellpadding="0" cellspacing="0" >
<tr>
<td bgcolor="#9B9AB 7" width="1px"></td>
<td height="22px" width="150px">< font size="1px" face="Verdana, Arial, Helvetica, sans-serif">Headeing </font></td>
<td align="right">< a onclick="pbody. hide()"><img src="images/close.gif"></a></td>
<td bgcolor="#9B9AB 7" width="1px"></td>
</tr>
<tr>
<td bgcolor="#9B9AB 7" width="1px"></td>
<td bgcolor="#fffff f" height="25px">< font size="1px" face="Verdana, Arial, Helvetica, sans-serif">Enter the Name</font></td>
<td bgcolor="#fffff f"><input type="text" class="textbox" name="name" value="sadas" /> </td>
<td bgcolor="#9B9AB 7" width="1px"></td></tr>
<tr>
<td bgcolor="#9B9AB 7" width="1px"></td>
<td bgcolor="#fffff f" colspan="2" align="center" height="40px">< input type="submit" value="Done" name="done" ><input type="reset" value="Clear" name="clear" > </td>
<td bgcolor="#9B9AB 7" width="1px"></td>
</tr>
<tr bgcolor="#9B9AB 7"><td colspan="4" height="1px"></td></tr>
</table>
</td></tr>
</table>
</div>
</div>
</body></html>[/HTML]