Refresh Frames
Nov 23, 2005How can I refresh a page in a separate frame. For example, when someone logs in in the main frmae, I want to refresh another frame to display info differently.
View 4 RepliesHow can I refresh a page in a separate frame. For example, when someone logs in in the main frmae, I want to refresh another frame to display info differently.
View 4 RepliesI have this code in a page that appears in my iframe if requested from parent:
<script type="text/javascript">
parent.rrr();
</script>
The parent code is:
function rrr() {
javascript:location.reload(true);
}
So, the person clicks a link from the parent, it does a php process in a hidden iframe, which then tells the parent page to refresh. The only problem is that it puts Firefox in a constant loop of refreshing. IE and Chrome work fine. They refresh once and stop.
Though the src code opens the iframe like so: <iframe src="" style="display:none; height:1px;" name="hdplus" id="hdplus"></iframe> Firefox seems to refresh the page with the memory of the child page being in the iframe, constantly looping the child request to refresh the parent.
Why won't Firefox just accept that no page should load in the iframe, as stated in the code? I need to stop this loop, which means I need to get firefox to reset the iframe as it reloads the page.
How to refresh DIV , without refresh entire page,Am having four DIV ,
DIV1,DIV2,DIV3,DIV4
I want to refresh only DIV! without affecting the DIV3,DIV4 ,
I have the below code:
<script type="text/javascript">
function loadQuickMessageCheck(File,ID){
var xmlhttp;
[code]....
So my problem is that i can't send form data in FF without page refresh (though in IE7-8 everything works smoothly).
My code fragments:
As a rule, I don't like frames but I'm stuck supporting a web that uses
them. I have a page, default.asp, that has a header and body frame: "fHead"
and "fBody". What I want to do is to prevent default.asp from ever loading
itself into "fBody". Some users still have code that causes this behavior.
So how, using javascript , can I do something to the effect of: "If
default.asp tries to load default.asp (itself) into fBody, then reload the
top-level browser window with what fBody is trying to load."
Make sense? Any thoughts?
my main page consists of frames.
i'm using ssi to include copyright info, tos, and a privacy statement at the bottom of each page.
the ssi is working on all regular (ie non-frame) pages, but it doesn't seem to be called or parsed on the main page.
a look at the source shows the ssi call just sitting there, doing nothing.
has anyone dealt with this before?
i didn't think it mattered if an ssi was called from within a framed page, but i might be wrong.
i suppose i can just use the actual html for that one page but i'd rather just be able to use ssi since it's used through out the rest of the site.
I have a frameset with two frames, and want to have a button in one
frame call print() in the other one:
This is the layout:
<frameset rows="*,40" frameborder="NO" border="0" framespacing="0">
<frame src="..." name="pritableText">
<frame src="..." name="printButton" scrolling="NO" noresize>
</frameset>
And, in printButton, I got this code:
<a href="#" onClick="parent.printableText.focus();
parent.printableText.print();">Print the page</a>
However, nothing happens in Netscape (7.01) and Firefox (0.8), and in IE (6)
I get an "error in the script". However, I do not identify the error.
Does anyone have a clue onto what's happening?
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?
What's the trick to sharing cookies between frames? I can set and read a
cookie in the same frame, but if I try to read the cookie in another frame
it is undefined. :o(
There are some other cookies that are available in all frames, so I know
that the frames are capable of reading cookies, just not the ones that I set
in the other frame.
I believe that different browsers treat frames/iframes differently, and this
is one of the reasons to avoid using them in websites/applications.
Are there any other reasons to avoid them?
In my experience I find them clunky and messy to implement using javascript
and prefer to keep the whole web page as a single page.
I have to iframes within one page. When I triger action in one frame, I
need to update the content's of other frame's selection list.
How to access second frame's form element from my first frame in index
page?
Suppose I named my second frame "content", and form element is named
simply "form1". If I try to access that form by refering:
parent.content.document.form1, I get nothing at all.
I apologize if this is not the right group for this, but I saw some
other messages on this topic in here, so thought I'd take a shot in the
dark...
I am running IE 6, XP, SP2. When I connect to certain sites that use
inline frames, I get the message 'Your browser does not support inline
frames or is currently configured not to display inline frames.'
The aggravating thing is I recently bought multiple Dell computers,
have 2 in the room with me right now, haven't touched a thing
browser-wise on either, and it works fine on 1 and not the other. Same
OS, same IE version, etc.
I am using a frameset with two frames that looks like this:
|------------------------------|
| |--------------------------| |
| | FRAME 1 | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| |--------------------------| |
| |
| |--------------------------| |
| | FRAME 2 | |
| | | |
| | <html><body> | |
| | <table><tbody> | |
| | <tr> | |
| | <td>Data 1</td> | |
| | <td>Data 2</td> | |
| | </tr> | |
| | </tbody></table> | |
| | </body></html> | |
| |--------------------------| |
|------------------------------|
FRAME 2 has no height, so it looks as if you only have 1 frame. I am
using FRAME 2 to retrieve data from my server.
I open up FRAME 1 with my webpage and leave FRAME 2 empty. When the
user request data I target FRAME 2 and the data is loaded into FRAME 2.
What I have been trying to do is this. Take the innerHTML of the FRAME
2's table and load it into a table in FRAME 1.
I am using frames - yes frames - I do not know how to do anything but and I
know that there is better out there......but........
I am trying to set a frame so that it automatically puts a page
corresponding to the month in that frame (a calendar) Code:
how do I create a print button that is on my index page that prints my
target page (and only the target page)
I tried
<INPUT onclick=window.print(); type=button value="Print This Page"
style="font-size: 10px; float:right">
But it prints the index page.
I have a script for printing the contents of a frame.
It works fine but I would like it not only to print the designated frame
but to add a header or message at the top or bottom.
i'm trying to use javascript to change the content of a textbox in a
different frame.
by clicking on a 'folder' link in 'leftFrame' i want to put the value
assigned by that link into the 'folderName' textbox in the
'uploadForm' form in 'mainFrame'. i'm doing this as...
onClick="parent.mainFrame.uploadForm.folderName.value='fold er'"
this works perfectly fine with IE and Safari on my Mac OS X machine
and IE 6 on my PC laptop but anything Mozilla-based on either machine
gives me an error i just can't seem to get round...
'parent.mainFrame.uploadForm has no properties'
Suppose I have a page, call in parent.html . Inside, there is an iframe,
call it child.html . I want it so that in response to a keyboard event
in either parent or child, child.html will respond in a particular way.
Do I need to use a different set of code for each html page, or can I
reuse the same code?
If the code is different, what are the fundamental differences in code?
How do I make one frame respond to events in a different frame as a
general rule?
How can I define the size of this whole window, i.e. to 600 * 800 pixels ?
Is there a script I can includre here?
<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 ROWS="130,*">
<FRAME SRC="head.html" NAME="head" SCROLLING=NO>
<FRAMESET FRAMEBORDER=0 BORDER=0 FRAMESPACING=0 COLS="205,*">
<FRAME SRC="menu.html" NAME="menu" NORESIZE>
<FRAME SRC="menu-exe.html" NAME="main">
</FRAMESET>
You people might have seen some calendars used in sites float every where when the mouse moves.I don't know whether it's a frame or layer.My question is i need to use something like that in my site too.Just now i'm submtting some form values in a pop up window.I need to replace this with that kind of frames or layers.So how to make frames moving.U people help me find a sample code for a floatable frame.I've searched for this in google but i'm not getting a desired result.I need to know the site names for tutorials or open source code for this floatable frames.
View 1 Replies View Relatedi have 3 frames on one page. I want to know how can i access the elements such as a listbox or a button defined in one frame from the other frame or the main page.
View 2 Replies View Related<script language=javascript>
function getSelText()
{
var txt = '';
[code]....
how do i identify the frames?.. document.getSelection(); and window.getSelection() only work for the frame the code is on. how do i change these getSelection(); for specific frame? i tried copying code to top frame but doesn't work. i tried changing to this but no success
parent.link_frame.getSelection
How can i do to load a new page in the main frame using a javascript function placed in the upper frame page?
I want to do this with a javascript function because my goal is to insert a flash movie in the upper frame and make a fscommand that would call the mentioned function...........
Lets say the flash movie placed in the upper frame has in itself several buttons that calls different html pages with and fscommand, and i'd like these pages to appear in the place i like, in this case, the main frame. But also i'd like to be able to do this in other frames..
I have a friend that needs help. They emailed me and said they notice that when there site is in a frame from another site, the cookies do not work. The email prompt pops up even if the person has already set a cookie. If you input an email address it still comes back with null. Do you know why it cannot read the email cookie from within another site, but works fine from his site.
Anyone know what to chnage in this script to fix this?
I'm building a tool for my company and I'm making use of frames in it. I have one frame on the left side and two frames on the right side. I have two forms on the main frame (the left panel) and the user has an option to submit to either frame or to both frames.
I'm wondering: is there any way to resize the right bottom or right top frame via JavaScript if someone submits to only one of the frames?