Solved

frame problem: object required

Posted on 2006-07-05
6
275 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to dynamically set the form action using jQuery.

726 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