Newbie script question : reload a frame from another frame 
Author Message
 Newbie script question : reload a frame from another frame

hello,

I am not used to html dev, then my question will certainly seems too easy
...

I use a FORM in a frame (frameA) with use the POST method when clicking a
button.
At the same time, I want to reload the current HTML which is in an other
frame (frameB).
I think I have to use the 'onclick=' event and some script.

Thanks for giving me any advice.



Fri, 08 Aug 2003 17:27:10 GMT  
 Newbie script question : reload a frame from another frame
<FORM onsubmit = 'location.reload(parent.frameB(true))'>


: hello,
:
: I am not used to html dev, then my question will certainly seems too easy
: ...
:
: I use a FORM in a frame (frameA) with use the POST method when clicking a
: button.
: At the same time, I want to reload the current HTML which is in an other
: frame (frameB).
: I think I have to use the 'onclick=' event and some script.
:
: Thanks for giving me any advice.
:
:
:



Fri, 08 Aug 2003 20:48:04 GMT  
 Newbie script question : reload a frame from another frame


Quote:
> hello,

> I am not used to html dev, then my question will certainly seems too easy
> ...

> I use a FORM in a frame (frameA) with use the POST method when clicking a
> button.
> At the same time, I want to reload the current HTML which is in an other
> frame (frameB).
> I think I have to use the 'onclick=' event and some script.

> Thanks for giving me any advice.

Use the onclick event as you said...

onclick="document.frameName.src='page.htm'"
or
onclick="document.frames[frameIndex].src='page.htm'"

to refer to a frame by name you have to add the name="frameName" attribute
to the <FRAME...> tag in the parent document.
to refer to a frame by index just count 0,..1.... and so on as the frames
appear in the page flow.... left to right, top to bottom.



Sat, 04 Oct 2003 14:16:56 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Newbie question : reload a frame

2. How to reload frame from another frame

3. getting query string from frame in jscript and getting frame name from another frame

4. Chosing Frame content in a 2 framed page from a 1 framed page

5. newbie question: how to make a horizontal frame

6. Calling a script in one frame from another frame

7. Reload a frame

8. Reload a frame

9. reloading 2 frames from 1 hyperlink?

10. Reload frame

11. reloading frame from a popup window

12. How to reload or refresh a frame from VBScript

 

 
Powered by phpBB® Forum Software