Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Website Design > General Website Design
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

General Website Design General discussions about website design can be found here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 9th July 2008, 08:48
D4PHP User
 
Join Date: Jun 2008
Posts: 10
Micodat is on a distinguished road
Default Problems with frameset

Hi,

System: 2.0.0.1041

For testing I have a very simple startpage with three frames: top, left, main
Code:
//Class definition
class Unit1 extends Page
{
       public $MainFrame = null;
       public $LeftFrame = null;
       public $TopFrame = null;
       public $Frameset1 = null;
}
the index.xml.php:
Code:
<object class="Unit1" name="Unit1" baseclass="page">
  <property name="Background"></property>
  <property name="Caption">Unit1</property>
  <property name="DocType">dtNone</property>
  <property name="Height">600</property>
  <property name="IsMaster">0</property>
  <property name="Name">Unit1</property>
  <property name="Width">800</property>
  <object class="Frameset" name="Frameset1" >
    <property name="BorderWidth">1</property>
    <property name="FrameBorder">fbYes</property>
    <property name="Height">598</property>
    <property name="Left">1</property>
    <property name="Name">Frameset1</property>
    <property name="Top">1</property>
    <property name="Width">798</property>
    <object class="Frame" name="TopFrame" >
      <property name="Align">alTop</property>
      <property name="Height">120</property>
      <property name="Left">1</property>
      <property name="Name">TopFrame</property>
      <property name="Source">php/top.php</property>
      <property name="Top">1</property>
      <property name="Width">796</property>
    </object>
    <object class="Frame" name="LeftFrame" >
      <property name="Height">476</property>
      <property name="Left">1</property>
      <property name="Name">LeftFrame</property>
      <property name="Source">php/left.php</property>
      <property name="Top">121</property>
      <property name="Width">120</property>
    </object>
    <object class="Frame" name="MainFrame" >
      <property name="Align">alClient</property>
      <property name="Height">476</property>
      <property name="Left">121</property>
      <property name="Name">MainFrame</property>
      <property name="Source">php/main.php</property>
      <property name="Top">121</property>
      <property name="Width">676</property>
    </object>
  </object>
</object>
If I display this page in FF3 or IE7, SOMETIMES only the top frame is shown, SOMETIMES only top and left frame are shown and on IE7 SOMETIMES only top and main frames are shown.

The generated code on FF3 is:

Code:
<html  DIR=ltr >
<head>
<title>Unit1</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="/vcl-bin/js/common.js"></script>
<script type="text/javascript">var Unit1=new Object(Object);</script>
</head>

<frameset rows="120,*" cols="*" frameborder="fbYes" border="1" framespacing="0" >
<frame src="php/top.php" name="TopFrame" id="TopFrame" scrolling="auto"  marginwidth="0" marginheight="0" frameborder="1"    >
<frameset cols="120,*" rows="*" frameborder="yes" border="1" framespacing="0" >
<frame src="php/left.php" name="LeftFrame" id="LeftFrame" scrolling="auto"  marginwidth="0" marginheight="0" frameborder="1"    >
<frame src="php/main.php" name="MainFrame" id="MainFrame" scrolling="auto"  marginwidth="0" marginheight="0" frameborder="1"    >
</frameset>

</frameset>
<noframes><body>
<form style="margin-bottom: 0" id="Unit1" name="Unit1" method="post"  action="/index.php">
<table  width="800"   style="height:600px"  border="0" cellpadding="0" cellspacing="0"  ><tr><td valign="top">
</td></tr></table>
</form></body></noframes>
<!-- Unit1 end -->
Take a look at the missing "<body>" "</body>" tags in the frameset section and the missing "</html>" tag!

If the frame sources are like "http://www.codegear.com", all work fine.
But if I use source like "php/main.php" (relativ to index.php) or "/php/main.php" (absolute), the strange behaviour happens.


Ciao
Frank

Last edited by Micodat; 9th July 2008 at 11:02.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 9th July 2008, 13:14
D4PHP User
 
Join Date: May 2008
Posts: 18
tm2008 is on a distinguished road
Default

Hi Frank,

I have the same problem. But only with the
d4php apache. If I use a standalone webserver
like xampp all frames are visible. I think it is a bug.
You can use the firefox contextmenu frame ->reload
to show all frames in d4php runtime mode. After reload
all invisible frames all frames work.

regards

thomas
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 9th July 2008, 17:50
D4PHP User
 
Join Date: Jun 2008
Posts: 10
Micodat is on a distinguished road
Default

thanx thomas,

after installing vcl to my xampp it works with my apache 2.2

Frank
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 21st August 2008, 17:31
Banned
 
Join Date: Aug 2008
Posts: 3
niaz333 is on a distinguished road
Default frameset problem

hello

i have some problem. this problem is frame set.
say me.

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 14th May 2009, 08:21
D4PHP Newbie
 
Join Date: May 2009
Posts: 5
chupi3 is on a distinguished road
Default

Quote:
Originally Posted by Micodat View Post

For testing I have a very simple startpage with three frames: top, left, main

If I display this page in FF3 or IE7, SOMETIMES only the top frame is shown, SOMETIMES only top and left frame are shown and on IE7 SOMETIMES only top and main frames are shown.


If the frame sources are like "http://www.codegear.com", all work fine.
But if I use source like "php/main.php" (relativ to index.php) or "/php/main.php" (absolute), the strange behaviour happens.


Ciao
Frank
Hi, I'm Spaniard so my English isn't very good.I have the same problem and I haven't found any solution.

I know that this thread is old, but I try some differents forms to load two frames (frame_red,frame_blue) into a main page when it starts without solution

The problem is that sometimes only load the frame_red, sometimes only load the frame_blue...but never load both

what I should to do?


PD: sorry if my English isn't very good and thanks for all!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28th July 2009, 18:59
D4PHP User
 
Join Date: May 2009
Posts: 19
merovingio is on a distinguished road
Send a message via Skype™ to merovingio
Default Work.

Hi! I have create this micro app. It when the window is resized the controls are moved correctly. The problem is the JS events non are fired.
please help me.
http://tae.mine.nu/php/template.zip
P.S.
the server is active from 7:00 to 23.00 +1. ( i am in italy).
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 On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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




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