frame problem: object required

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.
ly_uwoAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
js_vaughanConnect With a Mentor Commented:
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
 
ly_uwoAuthor Commented:
is this page not as hot as javas? I used to post at java channels and get a lot of help.
0
 
dfu23Connect With a Mentor Commented:
i think that it should be:

document.parent.frame1.form1.textfield.value=frame2.form2.textfield2.value
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
ly_uwoAuthor Commented:
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
 
callrsConnect With a Mentor Commented:
parent.frame1.document.form1.textfield.value, according to www.pageresource.com/jscript/jframe1.htm 
0
 
ly_uwoAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.