473,322 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Refreshing frames

Let me just start by saying... and I truly do mean this... I HATE
frames. Now that I have that out of my system, unfortnualty I do not
have a choice and am forced to use the complex structure that I am so
SO needing help with. My framesets look like this

---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------

inside the base frame I have ANOTHER frameset... split into frmLeft
and frmRight... now if your mind isnt tied into knots... I am sure
this will do it... I have a button called 'add category', which is on
the buttons frame. When I click the button, I get a popup with the
details... I add the category details... then I need the frame titled
frmLeft to refresh. Is this possible ? I know it is just one line of
code by I might as well be trying to work out the formula for time
travel !

Any help would be appreciated

Evan
Jul 23 '05 #1
1 1531
Lee
Evan said:

Let me just start by saying... and I truly do mean this... I HATE
frames. Now that I have that out of my system, unfortnualty I do not
have a choice and am forced to use the complex structure that I am so
SO needing help with. My framesets look like this

---------------------
| title |
|--------------------
| buttons |
|--------------------
| base |
|--------------------

inside the base frame I have ANOTHER frameset... split into frmLeft
and frmRight... now if your mind isnt tied into knots... I am sure
this will do it... I have a button called 'add category', which is on
the buttons frame. When I click the button, I get a popup with the
details... I add the category details... then I need the frame titled
frmLeft to refresh. Is this possible ? I know it is just one line of
code by I might as well be trying to work out the formula for time
travel !


From the popup window, the attribute you need to refresh is

opener.parent.frmLeft.location

Depending on what you mean by refresh, you might want either:
opener.parent.frmLeft.location.refresh(true);
or

opener.parent.frmLeft.location = someURL;

Here's an example that sets the location to a new URL.
Don't let the fact that I define the HTML for each frame in
script overwhelm you. The string value for each frame's
HTML is exactly what would appear in each separate file:

<html>
<head>
<script type="text/javascript">
var titleHTML= "<html><body><h1>Title<\/h1><\/body><\/html>";

var buttonHTML= [ "<html><body><button onclick='",
"window.open(\"javascript:opener.top.popupHTML\"," ,
"\"popup\",\"width=200,height=200,resizable\") '",
">add category<\/button>",
"<\/body><\/html>"].join("");

var popupHTML= [ "<html><body><button onclick='",
"opener.parent.frmLeft.location=",
"\"http://www.google.com\";self.close()'>",
"Google<\/button>",
"<\/body><\/html>"].join("");

var frmLeftHTML= "<html><body><h3>frmLeft<\/h3><\/body><\/html>";
var frmRightHTML= "<html><body><h3>frmRight<\/h3><\/body><\/html>";
</script>
</head>
<frameset rows="20%,30%,*">
<frame name="title" src="javascript:top.titleHTML">
<frame name="buttons" src="javascript:top.buttonHTML">
<frameset cols="50%,*">
<frame name="frmLeft" src="javascript:top.frmLeftHTML">
<frame name="frmRight" src="javascript:top.frmRightHTML">
</frameset>
</frameset>
</html>

Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jamie Jackson | last post by:
The crux of the problem is I only know if the popup *has been* opened, but not if it *is* open. Therefore, the script doesn't know whether to simply refocus, or whether to popup a fresh window. ...
4
by: sjoerd | last post by:
Hi, I have a web welcome-page consisting of three frames. On the left there is an index. The two others (above each other on the right of the screen) contain data related to the index-items. ...
3
by: John Ortt | last post by:
I appologise for reposting this but I have been trying to find a solution all week with no avail and I was hoping a repost might help somebody more knowledgable than myself to spot the message... ...
3
by: GraVity via DotNetMonster.com | last post by:
Hello all I am new to asp.net or web programming I have a requirement, I have to submit a document to another server using my webpage, there is a perticular protocol for doing that. This protocol...
1
by: jm | last post by:
I am sure this is simple, but I cannot find it. I have a frameset with two frames. The top frame is a form to be filled out. The bottom frame is the resultset. In the top frame when I hit...
2
by: Schraalhans Keukenmeester | last post by:
I have a page consisting of three frames. Top frame shows db rows, middle frame shows contents of a file, bottom frame has buttons to change file/row status and/or delete them. The desired...
1
by: ugo.matrangolo | last post by:
Hi, I'm trying to write a site to manage a scientific conference (submitting paper, reviews, etc.) for a friend. The application is almost finished but i have a little problem with its page...
1
nmm32
by: nmm32 | last post by:
I have this simple HTML page: <html> <head> <title></title> </head> <frameset cols="220,*" FRAMESPACING="0" BORDER="0" FRAMEBORDER="0"> <frame src="left.jsp" name="frame1"...
3
polymorphic
by: polymorphic | last post by:
I have succeeded in embedding PDF files in a dynamic iframe. The problem is that I need the PDF to cache. If the PDF remains the same from page load to page load then the pdf is somehow cached with...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.