JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old February 29th, 2008, 04:33 AM
typically typically is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2008
Posts: 2 typically User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 9 m 51 sec
Reputation Power: 0
Inconsistent behaviour using frameset

Hi all,

I've got a site that works generally quite nicely (http://www.mbfys.ru.nl/neuropi/). Our group decided early that, despite its drawbacks, we wanted to organize it using frames. So we have a three frame set up with a menu frame, banner frame, and main content frame.

Two issues that needed to be addressed by this set up are:

1. To circumvent the problem of bookmarking
2. To update my menu based upon the current content

To do the first, I use a "?" in the url which indicates the content to load; index.htm parses this url and loads the correct content.

To do the second, I have a bit of code in every content pane which:

1. Checks if it is the top pane, and if not loads index.htm?itself
2. Using an onload function, calls an update function in the menu frame:

Code:
function updateMenu() {
var d = parent.frames["menuFrame"];
d.updateMenu("menu_news");
}


This usually works fine. However, once in a while the menu simply does not update! I get no errors in the error console, so this is baffling. Could it be a refresh problem? Is it dependent on how quickly the pages load?

Thanks in advance!

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJavaScript Development > Inconsistent behaviour using frameset


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 3 hosted by Hostway