Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
|
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 12th, 2009, 01:32 AM
Authorized User
 
Join Date: Feb 2006
Posts: 67
Thanks: 7
Thanked 0 Times in 0 Posts
Send a message via Yahoo to beetle_jaipur
Default problem calling between frames

Hi,

i have one page which has two frames. my page structure is :

test.asp is main file which has two frameset:
a. top frame
b. main frame.

topframe shows one header file where clock is ticking
mainframe shows questions.

header.asp includes a script file names script.js
my last page which shows is review.asp

problem : i have written this code for autoclose of test, here x is time value
{
...
if(x == 0)
{
self.close();
window.parent.mainFrame.location.href = "review.asp";
endTest();
}
}

function endTest()
{
window.top.mainFrame.document.finalSubmit.hiddenAn swers.value = window.top.getConclude();
window.top.mainFrame.document.finalSubmit.hiddenMa rksheet.value = window.top.prepareMarkSheet();
window.top.mainFrame.document.finalSubmit.submit() ;
}

my review.asp page contains: form named : finalSubmit, here is the code

<form action="Conclude.asp" method="post" name="finalSubmit">
<input name="hiddenAnswers" type="hidden" value="" />
<input name="hiddenMarksheet" type="hidden" value="" />
<input name="btnSubmit" type="submit" value="submit form" style="visibility:hidden" />
</form>

but when i see error in ErrorConsole in Mozilla firefox. it says..

window.top.mainFrame.document.finalSubmit is undefined

i am new to javascript, please help me out..

thanks for your consideration .


best regards





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with the Frames guys ??? Riderman BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 September 12th, 2007 10:06 AM
Problem with navigation in frames wish147 Dreamweaver (all versions) 0 August 30th, 2006 09:53 AM
Nested Frames problem in Netscape 7 mridangsreedhar Javascript How-To 0 May 19th, 2006 06:17 AM
Hard frames problem johnjohn Classic ASP Basics 1 November 30th, 2004 06:09 PM
Hard frames problem johnjohn Classic ASP Databases 0 November 30th, 2004 10:38 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.