Thanks!!!!
It works after changing the layout.
It was the problem of the body tag only.
Thanks again!!!

Tanveer

-----Original Message-----
From: Simon Christian [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 31, 2005 2:47 PM
To: Velocity Users List
Subject: Re: Frames ..


Hi Tanveer,

This is strictly a Turbine and/or HTML question, however the problem
seems a fairly fundamental one: your frameset is not being recognized
because the tags appears within the <body> section of the page. The
final source for your page should instead look something like this:-

<html>
<head>
<title></title>
</head>
<frameset rows="20%,*">
     <frame src="http://www.google.com"; />
     <frame src="http://www.yahoo.com"; />
</frameset>

<noframes>
<p>Frames required</p>
</noframes>
</html>

Note that the frameset starts immediately after the closing tag of the
head section. The reason your page is rending like that is because your
layout template 'VelocityOnlyLayout' is expecting to put the page
content within the body tag. What you need to do is create a new layout
template specifically for framesets, and instruct Turbine/Velocity to
use that layout for your frameset template(s).

Going out on a bit of a limb (and this may be wholly incorrect), I'll
assume that Turbine uses the VelocityLayoutServlet, in which case your
new layout template should look like this:

<html>
<head>
<title></title>
</head>

$screen_content

<noframes>
<p>Frames required, even though this is 2005</p>
</noframes>
</html>

And at the top of your 'try.vm' template add the following line:

  #set( $layout = "VelocityFramesetLayout" )

- simon



Tanveer Dhillon wrote:
> HI
> i have been able to use frames in velocity bt when i use them with turbine
> the same page stops working.
> I have a try.vm page havin the follwoeing code
>
> <frameset rows="20%,*">
>   <frame src="http://www.yahoo.com/"; />
>   <frame src="http://www.google.com/"; />
> </frameset>
>
> when i place it in my project directory helloworld it works if accessed
from
> the browser as
> http://localhost:8080/helloworld/try.vm
>
> but if i place it in the templates/screens directory and in the turbine
> resource properties file i add the following statement
> layout.default=VelocityOnlyLayout
> and change home page as template.homepage=Try.vm
> the frames dont appear in the browser
> If i view source fron the browser i get the following code
> <html>
> <head>
>       <title></title>
>             </head>
> <body  >
>
>
> <frameset rows="20%,*">
>     <frame src="http://www.google.com"; />
>     <frame src="http://www.yahoo.com"; />
> </frameset>
>
>
> </body>
> </html>
> can someone help?
>
> thanks
> Tanveer
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to