|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
Meta options
is it possible using a meta "HTTP-EQUIV=Refresh" tag AND target a different frame?
|
|
#2
|
|||
|
|||
|
RE: Meta options
Nope can't do a meta refresh, but you can use javascript...if the frame you want to refresh is called right:
<script> setTimeout("top.right.location = 'p.html'", 300); </script> |
|
#3
|
||||
|
||||
|
RE: Meta options
you will have to excuse my almost none existant knowledge of html and javascript, but would that just get popped into the header area of the page, any old where in the body or perhaps in the page that declares the framesets and such ? And it would just work away in the background ? or need activating ?
Cheers - Matt, you are a vertiable star. |
|
#4
|
|||
|
|||
|
RE: Meta options
You should be able to just place that in the body of one of the frames that won't be changing....
|
|
#5
|
|||
|
|||
|
RE: Meta options
Oh....and btw, that number is in milliseconds...
|
|
#6
|
||||
|
||||
|
RE: Meta options
Okay I'm thinking I'm going at this the wrong way. Heres the deal, 3 frames, a top bar that doesn't change,
a side bar that holds a php page that is basically a menu and a main area where the content - mostly php generated is displayed. I've got the log on displaying in the main area. When a person logs on the menu appears in the side bar - which was blank. I would also like logging in to change the main area frim the log in screen to some other page. I've seen javascript that can affect multiple frames, but that was for anchor tags, would that sort of thing work in this sort of scenario where a submit button is used instead? |
|
#7
|
|||
|
|||
|
RE: Meta options
Well, if you really want to use frames...this is how I would do it....set up your main frames to be a upper and lower frame:
<FRAMESET ROWS="15%, 85%"> <FRAME SRC="top.html" name="top"> <FRAME SRC="bottom.php" name="bottom"> </FRAMESET> then bottom.php would set up the lower frameset, and show different pages depending on if they were logged in: // not loggedin: <FRAMESET COLS="20%,80%"> <FRAME SRC="blank.html" name="nav"> <FRAME SRC="login.php" name="main"> </FRAMESET> //logged in: <FRAMESET COLS="20%,80%"> <FRAME SRC="nav.html" name="nav"> <FRAME SRC="main.php" name="main"> </FRAMESET> |
|
#8
|
|||
|
|||
|
RE: Meta options
could i get a copy of this script, its just wat im after for my site and dont have the knowledge to write it.
thanks |
|
#9
|
||||
|
||||
|
RE: Meta options
you just need the hyperlink to be
<a href="javascript:jumpto('page1');">Page 1</a> and then in javascript you have function jumpto( cPage) { window.bodyFrame.location = cPage + ".php"; window.menuFrame.location = "menu.php?show=" + cPage; } I don't know if it's necessary but I change the location of the current frame LAST. I'm also assuming frame names, file names etc but I hope you understand what I'm talking about. |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > Meta options |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|