Target Frames

R

ruca

Do I have anyway to choose my page targets in frames?

Example

I have a page that have 3 frames

frame 1 - header (contains only an image and stay static)
frame 2 - contents (contains a menu and change by menu)
frame 3 - main (show the result "command" of click in contents frame)

What I want is that when I choose something in frame 2 this frame change the
menu, but I have to change the display of frame 3 too, ie, both frames have
to change the display withou affecting frame 1.

Can I do this in someway? Like using Response.Redirect(...) or anything
else!!!
 
S

Steve C. Orr [MVP, MCSD]

You must do this with client side code, such as javascript.
This is one of the many reasons why frames are a pain, so you should try and
avoid them when you can.
Usually user controls are a better way to separate individual sections.
 
G

Guest

Steve

Re "frames are a pain." I understand why this is, and know that most commercial sites have gotten away from them. But, I still really like the way that they all hold their place for, say, a simple shopping cart application, where I've got a catalog in one frame, detailed information in another, and maybe a shopping cart in a third. I know I can do all this with tables and user controls, etc., but the page still jumps around. Smart navigation helps a bit, but doesn't handle down-level browsers. Any other thoughts on how to specifically emulate the frame-style logic where the user can size the frame at run-time, scroll bars appear as necessary, and everything pretty much stays put till I tell it otherwise? Any comments are appreciated

Thanks

Bill Bor

----- Steve C. Orr [MVP, MCSD] wrote: ----

You must do this with client side code, such as javascript
This is one of the many reasons why frames are a pain, so you should try an
avoid them when you can
Usually user controls are a better way to separate individual sections
 
S

Steve C. Orr [MVP, MCSD]

It sounds like you truly want the features that only frames can provide.
Just be prepared to use a bunch of client side code to make it work because
..NET does not help you at all with this.
Some javascript similar to this should help you out in many cases:
Parent.FRAMENAME.location.href = 'whatever.aspx';

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


Bill Borg said:
Steve,

Re "frames are a pain." I understand why this is, and know that most
commercial sites have gotten away from them. But, I still really like the
way that they all hold their place for, say, a simple shopping cart
application, where I've got a catalog in one frame, detailed information in
another, and maybe a shopping cart in a third. I know I can do all this
with tables and user controls, etc., but the page still jumps around. Smart
navigation helps a bit, but doesn't handle down-level browsers. Any other
thoughts on how to specifically emulate the frame-style logic where the user
can size the frame at run-time, scroll bars appear as necessary, and
everything pretty much stays put till I tell it otherwise? Any comments are
appreciated.
Thanks,

Bill Borg

----- Steve C. Orr [MVP, MCSD] wrote: -----

You must do this with client side code, such as javascript.
This is one of the many reasons why frames are a pain, so you should try and
avoid them when you can.
Usually user controls are a better way to separate individual sections.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


ruca said:
Do I have anyway to choose my page targets in frames?
frame 2 - contents (contains a menu and change by menu)
frame 3 - main (show the result "command" of click in contents frame)
change
the
menu, but I have to change the display of frame 3 too, ie, both
frames
have
to change the display withou affecting frame 1. anything
else!!!Hope this help you (if I try to help you)
ruca
 

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