Hi
I have just taken the job to change this site that uses frames with php. The problem I am facing is that now they want to remove the frames but the current site uses side & main frame (left side bar and center main body page). The side frame consists of popup click for searching the database and completion of the query will close the popup and shows the result in the main frame.
~~~~~~~~~~~~~~~~~~~~~~
<script>
window.opener.top.main.location="query.php?state=< ? echo urlencode($RegionID); ?>&mes=1";
window.close();
</script>
~~~~~~~~~~~~~~~~~~~~~~
The above script is for auto closing of the popup.
~~~~~~~~~~~~~~~~~~~~~~
<frameset cols="115,*" rows="*" border="0" framespacing="0">
<frame src="sidemenu.php" marginwidth="0" name="sidemenu" scrolling="NO" frameborder="NO">
<frame name="main" frameborder="NO" src="main.html" marginwidth="0" marginheight="0">
</frameset>
~~~~~~~~~~~~~~~~~~~~~~
The above is the frame used. Therefore, I am wondering how I can eliminate using frames without having the result showing under frame name="main"? I tried using without frame to execute the popup php but gave error saying 'window.opener.top' is not null or object.
Any solution?
Thanks!
Edward