|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Frames & Navigation
I have a page that is split into 2 frames, header & main. In the header section I have a running total and summary of the information entered into the 'main' frame.
There are a few command buttons on the 'main' frame to submit data etc, when I click on these I want to move away from the frames page and display the new page by itself, in the same current window. At the moment, my 'main' frame is navigating to the new page, but leaving the header information at the top...? My command buttons are running VBScript at the moment (I know, I know! But it's gonna be purely Intranet!), syntax such as... window.navigate "RangeCheckDetail.asp" I'm using frames for this one page because the users require that they have certain data on show at all times? Is there another way to do this without using frames, can I lock a section so when the user scrolls down the 'header' information remains on the screen>? Any advice appreciated. |
|
#2
|
|||
|
|||
|
I hate frames!!!
I have always used session variables and has been able to achieve the same thing Have you tried session variables |
|
#3
|
|||
|
|||
|
Yes, I hate frames as well!!
But how else can I freeze a part of the page, so that it is always visible to the user? If there's a better way please let me know! Otherwise, I just want to move away from the frames page when a link on the 'main' frame is clicked, I don't want the target page to be displayed in the frame - I want it on a brand new, un-framed page. Can I do this using the _top syntax or something similar?? Thanks |
|
#4
|
|||
|
|||
|
Yes frames are evil, but sometimes a necessary evil.
If you find a way to get around them using your example then let me know Anyway, use target=_top. <a href ... target="_top"> ... </a> OR <form target="_top" ...> ... </form> |
|
#5
|
|||
|
|||
|
I figured it out. This isn't the best example, but it works.
Use DHTML to dynamically reposition a table, p, ... element on the screen. <table id=table1 style="position:relative"> <tr><td><button>Button1</button></td></tr> <tr><td><a href="http://forums.aspfree.com">link</a></td></tr> </table> <script> window.onscroll=windowScrolling; function windowScrolling() {table1.style.top=document.body.scrollTop;} </script> This will keep the table at the top of the screen whenever you scroll. This way you can put your links, buttons, .. whatever in the table element and keep it at the top of the screen. |
|
#6
|
|||
|
|||
|
Thanks v much, will give that a go....anything that doesn't use frames is a bonus!
Dylan |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Frames & Navigation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|