Solved

frame problem: object required

Posted on 2006-07-05
6
272 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

773 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