Current location: Hot Scripts Forums » Programming Languages » PHP » How to solve this without using frames?


How to solve this without using frames?

Reply
  #1 (permalink)  
Old 06-20-04, 10:44 PM
Edward Han Edward Han is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy How to solve this without using frames?

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-21-04, 01:12 AM
sufyan sufyan is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Melbourne, AU
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
try to replace window.opener.top.main.location= with:

Code:
window.opener.location.href=
See how that goes...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-22-04, 08:40 AM
Edward Han Edward Han is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks! I will try this method.

Edward
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash help: Play frames in reverse Infinite_Hackers Flash & ActionScript 2 08-24-05 10:05 PM
i need help with the frames Ghetto2k4 HTML/XHTML/XML 8 03-19-04 08:44 AM
Unsolved mystery - can you solve it?? blacib JavaScript 1 03-09-04 08:29 AM
Source load into table not using frames moman JavaScript 1 03-09-04 07:32 AM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 12:58 PM


All times are GMT -5. The time now is 07:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.