hi,
i suggest you to go with AJAX technology using than iframe,
if you want try this code,
create a page call test1.php or you also can use html page
test1.php
----------------
<script language="javascript">
<!--//
var xmlHttp
function viewpage()
{
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
}
var url="test2.php"
url=url+"?sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}
function stateChanged()
{
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{
document.getElementById("divx").innerHTML=xmlHttp. responseText
}
}
function GetXmlHttpObject()
{
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
viewpage()
function clickchk(){
document.getElementById("chk1").checked=true
document.getElementById("chk2").checked=true
document.getElementById("chk3").checked=true
document.getElementById("chk4").checked=true
}
//-->
</script>
<div id="divx"></div><input type="button" name="btnadd" value="Click here" onclick="javascript
:clickchk()">
create a page with your checkbox....
----------------test2.php----------------------
<input type="checkbox" name="chk1" id="chk1">
<input type="checkbox" name="chk1" id="chk2">
<input type="checkbox" name="chk1" id="chk3">
<input type="checkbox" name="chk1" id="chk4">
surendran
(Anything is Possible)
http://ssuren.spaces.msn.com