Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cant get frame src to change

Status
Not open for further replies.

jockey

Programmer
Nov 18, 2003
34
GB
I have a page with 2 frame in it I want a button on the top frame to change the src page in the bottom frame. I have looked at other threads and tried examples but cant get it to work can some 1 help me.

I keep getting an this error
error mainframe is not defined.

Mainframe being the name of the frame whos src i'm trying to change.

Here is my frameset code

<frameset rows="273,*" cols="*" framespacing="0" frameborder="NO" border="0" id="Frameset" name="Frameset" runat="server">
<frame src="Top.aspx" id="topFrame" name="topFrame" scrolling="NO" noresize runat="server"></frame>
<frame src="blank.aspx" id="mainFrame" name="mainFrame" runat="server"></frame>
</frameset>
<noframes>

and here is the code i'm trying to get to change the src

mainframe.document.location.href='problemdetails.aspx';

This is being developed in dreamweaver using asp.net if that makes any difference.

Hope someone can help

Thanx in advance

Jamie
 
Try this:
parent.mainframe.location.href='problemdetails.aspx';

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Take out the href. Just type:

parent.mainframe.location='problemdetails.aspx';

--Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top