Load in other frame(s)

S

SergioBS

Hi everybody...I'm a newbie..and I have (at least) one problem I cannot
solve.

I have a (copied) script that tells at a certain point:

<%
Server.Execute("header.asp")
%>

Since I'm using a framed page, I'd like to load this "header.asp" page in
one specific frame not in the default frame
how can I do?

moreover if I want to load more than one frame, can I use the same
procedure: I mean, the control remains at principal page?

Thank you!

Sergio
 
S

Stefan B Rusynko

The code you posted is an ASP include page (for a .asp page)

The framed page that uses it must be .asp and your server must support ASP

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
To find the best Newsgroup for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp
_____________________________________________


| Hi everybody...I'm a newbie..and I have (at least) one problem I cannot
| solve.
|
| I have a (copied) script that tells at a certain point:
|
| <%
| Server.Execute("header.asp")
| %>
|
| Since I'm using a framed page, I'd like to load this "header.asp" page in
| one specific frame not in the default frame
| how can I do?
|
| moreover if I want to load more than one frame, can I use the same
| procedure: I mean, the control remains at principal page?
|
| Thank you!
|
| Sergio
|
|
 
S

SergioBS

Stefan B Rusynko said:
The code you posted is an ASP include page (for a .asp page)

The framed page that uses it must be .asp and your server must support ASP

Hi Stefan, thank you for your answer, but I do not understand:, clearly both
pages are .asp and server supports ASP...but..
which script should I use?

Thank you!

Sergio
 
S

Stefan B Rusynko

Apply the script in the .asp page(s) you want to have it (not in the frameset page)




|
| "Stefan B Rusynko" <[email protected]> ha scritto nel messaggio
| | > The code you posted is an ASP include page (for a .asp page)
| >
| > The framed page that uses it must be .asp and your server must support ASP
| >
|
| Hi Stefan, thank you for your answer, but I do not understand:, clearly both
| pages are .asp and server supports ASP...but..
| which script should I use?
|
| Thank you!
|
| Sergio
|
|
 
S

SergioBS

Apply the script in the .asp page(s) you want to have it (not in the
frameset page)
Well, sorry but I have not understood, but probably because I have not
explained in the correct way

The procedure opens automatically the page "A.asp" that contains this
command
<%
Server.Execute("header.asp")
%>

therefore this header.asp page is loaded in the same frame where is located
page A.asp:

I want to change this, I want that to open this header.asp in another frame,
like I could do when I specify the target frame with a hyperlink

If I follow your suggestion, then I need to add a command in page A.asp that
load a certain page in the target frame which will contain itself the above
command: am I right?

but I still need a command...

Sorry...

Sergio
 
J

Jon Spivey

Hi,
ASP doesn't know about frames - you always have to use client script to
manipulate frames. Something like this
<script type="text/javascript">
parent.NameOfFrame.location.href='header.asp';
</script>
 
S

SergioBS

Jon Spivey said:
Hi,
ASP doesn't know about frames - you always have to use client script to
manipulate frames. Something like this
<script type="text/javascript">
parent.NameOfFrame.location.href='header.asp';
</script>

Thank you Jon!

Regards
 
S

SergioBS

Jon Spivey said:
Hi,
ASP doesn't know about frames - you always have to use client script to
manipulate frames. Something like this
<script type="text/javascript">
parent.NameOfFrame.location.href='header.asp';
</script>
Thank you again Jon!

it works perfectly, but sometimes I have to refresh the screen to show the
right frames...
how can I solve the problem... is there a refresh (not automatic) command to
put in the script?

Thank you for your help

Regards

Sergio
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top