Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Delphi4PHP NNTP Newsgroups > embarcadero.public.delphiphp.language.php
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

embarcadero.public.delphiphp.language.php This group is for discussions pertaining to the PHP language.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 21st November 2009, 19:16
John Schmidt
Guest
 
Posts: n/a
Default How to load a page into another frame

Hello,

I have a form with a frameset containing the frames for manu and body. I
have in Frame1 my menu as Form1. Selecting a menu item I want to load e.g.
Form2 into Frame2. But Form2 doesn't know Frame2. How can I get a relation
to it?

Thanks & regards,
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 21st November 2009, 19:18
John Schmidt
Guest
 
Posts: n/a
Default Re: How to load a page into another frame

Sorry I meant:

But *Form1* doesn't know Frame2.

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 28th November 2009, 23:18
Jonathan Benedicto
Guest
 
Posts: n/a
Default Re: How to load a page into another frame

John Schmidt wrote:
> I have a form with a frameset containing the frames for manu and body. I
> have in Frame1 my menu as Form1. Selecting a menu item I want to load e.g.
> Form2 into Frame2. But Form2 doesn't know Frame2. How can I get a relation
> to it?


If you're using ordinary links, you'd just set the target property on the
<a> tag to the name of the frame that you want changed.

If you are using JavaScript, you can get the frame instance using this code:

var frame2 = window.parent.frames["Frame2"];
frame2.location.href = "new url";

Jon
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 29th November 2009, 13:07
John Schmidt
Guest
 
Posts: n/a
Default Re: How to load a page into another frame

> var frame2 = window.parent.frames["Frame2"];
> frame2.location.href = "new url";


Thanks, it works fine.

John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 29th November 2009, 13:34
John Schmidt
Guest
 
Posts: n/a
Default Re: How to load a page into another frame

Can I also refence e.g. a label on the loaded page of Frame2? - Like:
Frame2.document.Label1?

Thanks,
John
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:35.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use