new window and forcing frames 
Author Message
 new window and forcing frames

Hi everybody,
I create a link that open a new window with an Url like that :
var destWIN = window.open("http://...../default.asp","destWIN");
This ASP page contains three frames like that :
    <frameset BORDER="no" FRAMESPACING="0" FRAMEBORDER="0" cols="177,*">
      <frame NAME="FRAME" SRC="navig.htm" FRAMEBORDER="No" SCROLLING="No"
FRAMEBORDER="No"
      NORESIZE target="principal">
      <frameset rows="37,*">
        <frame NAME="haut" SRC="haut.htm" SCROLLING="No" FRAMEBORDER="No"
NORESIZE>
        <frame NAME="principal" SRC="edito.htm" FRAMEBORDER="No" NORESIZE>
      </frameset>
      <noframes>
      <body>
      </body>
      </noframes>
    </frameset>
The problem is that i can't access the frame called "principal" and change
the location of it.
Has someone any idea ??
Thanks for answers.


Sun, 27 Jun 2004 01:29:04 GMT  
 new window and forcing frames
Make "var destWin" a global variable. Then you can use it to reference
the popup window object. Within that window object you would then
reference the frameset's href.

Example:

        destWIN.principal.location.href

Quote:

> Hi everybody,
> I create a link that open a new window with an Url like that :
> var destWIN = window.open("http://...../default.asp","destWIN");
> This ASP page contains three frames like that :
>     <frameset BORDER="no" FRAMESPACING="0" FRAMEBORDER="0" cols="177,*">
>       <frame NAME="FRAME" SRC="navig.htm" FRAMEBORDER="No" SCROLLING="No"
> FRAMEBORDER="No"
>       NORESIZE target="principal">
>       <frameset rows="37,*">
>         <frame NAME="haut" SRC="haut.htm" SCROLLING="No" FRAMEBORDER="No"
> NORESIZE>
>         <frame NAME="principal" SRC="edito.htm" FRAMEBORDER="No" NORESIZE>
>       </frameset>
>       <noframes>
>       <body>
>       </body>
>       </noframes>
>     </frameset>
> The problem is that i can't access the frame called "principal" and change
> the location of it.
> Has someone any idea ??
> Thanks for answers.



Sun, 27 Jun 2004 02:03:26 GMT  
 new window and forcing frames
I have tried your recommandation but it doesn't work.
Here my ASP page :

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<script language="javascript">
<!--
var destWIN;
function GoToURL(){
    destWIN = window.open("http://../default.asp","destWIN");
    destWIN.principal.location.href = "http://./navig.htm
Quote:
}

// -->
</script>
</HEAD>
<BODY>

<P>&nbsp;</P>
<input type="button" value="Tester" name="B1" onclick="GoToURL();">
</BODY>
</HTML>

Default.asp contains the frameset.



Quote:
> Make "var destWin" a global variable. Then you can use it to reference
> the popup window object. Within that window object you would then
> reference the frameset's href.

> Example:

> destWIN.principal.location.href


> > Hi everybody,
> > I create a link that open a new window with an Url like that :
> > var destWIN = window.open("http://...../default.asp","destWIN");
> > This ASP page contains three frames like that :
> >     <frameset BORDER="no" FRAMESPACING="0" FRAMEBORDER="0" cols="177,*">
> >       <frame NAME="FRAME" SRC="navig.htm" FRAMEBORDER="No"
SCROLLING="No"
> > FRAMEBORDER="No"
> >       NORESIZE target="principal">
> >       <frameset rows="37,*">
> >         <frame NAME="haut" SRC="haut.htm" SCROLLING="No"
FRAMEBORDER="No"
> > NORESIZE>
> >         <frame NAME="principal" SRC="edito.htm" FRAMEBORDER="No"
NORESIZE>
> >       </frameset>
> >       <noframes>
> >       <body>
> >       </body>
> >       </noframes>
> >     </frameset>
> > The problem is that i can't access the frame called "principal" and
change
> > the location of it.
> > Has someone any idea ??
> > Thanks for answers.



Sun, 27 Jun 2004 21:47:59 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Force new session in new window

2. Frames - within the frame and new window.

3. Want to open frameset in new window with different page in main frame

4. Can't open URLs in frames in new window

5. load new window, but also send the information into a frame

6. dynamically setting frames on new window

7. setting frames on new window

8. Response.redirect to target a frame not open new window

9. Frame open new frame depending of directory

10. Force Frames

11. Forcing Frames..HELP

12. force new Netscape browser to open instantly

 

 
Powered by phpBB® Forum Software