farhan386 0 Light Poster

i've created a form like this

<form method="post" target="iframe_in_bottom" action="send.php">

send.php is used to save data posted from the form, and call a function called getURL in main window

<script type='text/javascript'>parent.getURL('thankyou.php')</script>
function getURL(url){
var xmlHttp=GetXmlHttpObject();
	function stateChanged() { 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete"){ 
	document.getElementById('maindiv').innerHTML=xmlHttp.responseText;
		} else {
		document.getElementById('maindiv').innerHTML = document.getElementById("divloading").innerHTML
		}
	} 
xmlHttp.onreadystatechange=stateChanged ;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

if getURL called from send.php using above syntax, the xmlHttp.readyState value is never reach something after 1 and getURL never finished.
Please note that this problem happened only if getURL is called from inside iframe, and using Opera. Firefox doesnt suffer from this problem.

Does anyone has any idea to solve the problem? Thanks