View Single Post
  #1 (permalink)  
Old June 4th, 2004, 11:06 AM
fs22 fs22 is offline
Friend of Wrox
 
Join Date: Apr 2004
Location: Wausau, WI, USA.
Posts: 121
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamically replace nested frames?

Greetings,

I have a framed site that is the typical nav frame, title frame and content frame. One portion of the site has nested frames. What I mean is the content frame brings up a frameset inside it that contains two frames. This is a quiz that the user can take and one frame is the questions and the bottom frame is the navigation. Tha navigation for this frameset is as follows...

function goNext() {
  var currPage, i
  for (i=0; i<=(quiz.length-1); i++) {
    if (parent.main.document.location.href.indexOf(quiz[i].src) != -1) {
      parent.main.document.location.href = quiz[i+1].src
      break
    }

So basically I am cycling through an array and replacing the page in the questions frame. Now for my question...When the user gets to the last page in the quiz, I want to be able to send them to a totally different page within the content frame and replace the nested frameset. Does anyone know how to do this and not have the nested navigation frame still show up?

Clay Hess
__________________
Clay Hess
Reply With Quote