Solved

frame problem: object required

Posted on 2006-07-05
6
263 Views
Last Modified: 2010-04-06
hi:

I am using vbscript/asp to design a frameset. I divided the page into two frames. One is above and one is at the bottom. But when I use parent.frame1.form1.textfield.value=frame2.form2.textfield2.value. It will give me error like: object required "parent". I changed parent to top, it still gives me error. Please help me figure out the problem. Thanks.
0
Comment
Question by:ly_uwo
6 Comments
 

Author Comment

by:ly_uwo
ID: 17045626
is this page not as hot as javas? I used to post at java channels and get a lot of help.
0
 
LVL 10

Accepted Solution

by:
js_vaughan earned 250 total points
ID: 17046065
I am assuming you are calling this from frame2 since you didn't put "parent" in front of frame2.  If this is the case, you dont need "frame2" either, because the code you are running is already sitting in that frame.  This should do the trick:

parent.frame1.form1.textfield.value=form2.textfield2.value

If the same problem persist, try posting your code so we can have a look at the problem.
0
 
LVL 14

Assisted Solution

by:dfu23
dfu23 earned 100 total points
ID: 17046066
i think that it should be:

document.parent.frame1.form1.textfield.value=frame2.form2.textfield2.value
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:ly_uwo
ID: 17046178
Still has errors.

My Html page looks like:

<html>
<frameset rows="90%,*" framespacing="0">
      <frame name="Frame1" src=" ppsa.asp" scrolling="auto">
      <frame name="Frame2" src="setsession.asp">
</frameset>
</html>

 
The error occurs in setsession.asp page:

<%@language="VBScript"%>
<%
     
            dim l
            l=Request.QueryString("flag")
            top.document.Frame1.ppsa_combiform.db_firstname.value=l
%>



 
0
 
LVL 30

Assisted Solution

by:callrs
callrs earned 150 total points
ID: 17046732
parent.frame1.document.form1.textfield.value, according to www.pageresource.com/jscript/jframe1.htm
0
 

Author Comment

by:ly_uwo
ID: 17050417
I found out the reason anyways. I am new to vbscript. There are some errors I don't notice. But all your suggestions help me a lot in finding the correct method.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

744 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

11 Experts available now in Live!

Get 1:1 Help Now