SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old November 4th, 2002, 10:47 AM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
Meta options

is it possible using a meta "HTTP-EQUIV=Refresh" tag AND target a different frame?

Reply With Quote
  #2  
Old November 4th, 2002, 12:31 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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>

Reply With Quote
  #3  
Old November 4th, 2002, 01:04 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
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.

Reply With Quote
  #4  
Old November 4th, 2002, 01:41 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Meta options

You should be able to just place that in the body of one of the frames that won't be changing....

Reply With Quote
  #5  
Old November 4th, 2002, 01:41 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Meta options

Oh....and btw, that number is in milliseconds...

Reply With Quote
  #6  
Old November 4th, 2002, 02:02 PM
postmoderngoblin's Avatar
postmoderngoblin postmoderngoblin is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: UK
Posts: 55 postmoderngoblin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 m 53 sec
Reputation Power: 2
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?

Reply With Quote
  #7  
Old November 4th, 2002, 02:15 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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>


Reply With Quote
  #8  
Old April 19th, 2003, 05:00 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
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

Reply With Quote
  #9  
Old April 24th, 2003, 09:12 PM
sarah's Avatar
sarah sarah is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Auckland, New Zealand
Posts: 127 sarah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 5 m 32 sec
Reputation Power: 2
Send a message via ICQ to sarah Send a message via AIM to sarah Send a message via Google Talk to sarah
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.

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Meta options


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway