I need to force a refresh of a frame from another frame

Posted on 2006-04-13
Last Modified: 2010-04-09
Hey all,

I've got this test that I've doing in ColdFusion with a frameset.  2 frames....the top holds the clock and the bottom holds the questions.  Well, once the student starts the test, I'm setting the session variable to 0 which means that the clock is to run.  If the variable is 1, then the clock is to stop.  The clock doesn't stop running until the student finishes the test or till the time expires.  

I've got the part finished if the time runs out on the student...but if they finish with time remaining on the clock, I want to stop the clock from counting.  Since it is in the top frame, I am unable to determine how I might refresh the top frame so that it can see that the session variable has changed from a 0 to a 1.  

Student Starts Test
       - Session.Auth.StopTimer is 0
       - Timer starts at 15 minutes and counts down
Student Finishes Test
       - Student is sent to a review page to see their work, Session.Auth.StopTimer is 1
       - Timer stops counting down.

All I need if an idea of how to refresh that top frame from the bottom frame from within the set.

Thanks a lot,
Question by:inverted_2000
    LVL 2

    Author Comment

    Nevermind...I got it myself.

    <script language="JavaScript">
        parent.topFrame.location = "../student_startTestTop.cfm"

    Can I have my points back (o:
    LVL 28

    Expert Comment

    Ask for a refund in the community support TA


    Accepted Solution

    Closed, 200 points refunded.
    The Experts Exchange
    Community Support Moderator of all Ages

    Featured Post

    Javascript: Crash Course

    Javascript is not only emerging as the most important language to know, it's flexibility is unique. With Javascript being deployed on the web, mobile and even the desktop this is the one language that all technologists need to know.

    Join & Write a Comment

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
    In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now