Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-12-2009, 05:52 AM   PM User | #1
kamaal
New to the CF scene

 
Join Date: Nov 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kamaal is an unknown quantity at this point
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
Code:
{
...
if(x == 0)
{
self.close();
window.parent.mainFrame.location.href = "review.asp";
endTest();
}
}
Code:
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

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
kamaal is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:53 PM.


Advertisement
Log in to turn off these ads.