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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frame in CF

Status
Not open for further replies.

giahan

Programmer
Sep 1, 2000
139
US
Is there anyway that I can write a frame in CF? I have tried as html code for frame but it doesn't work. Could anyone help me?

Thank you [sig]<p>GH ((-:<br><a href=mailto:giahan@hotmail.com>giahan@hotmail.com</a><br>(-:[/sig]
 
Hi!

hum you cant actually write a frame in CF...
Use the good old HTML to do that and it will work perfectly...

This create a top frame and separate the lower section (under the top frame) into 2 other frame.
Use the frame wizard in Homesite or CF Studio, it will help you.

here is a frame example:
<html>
<frameset rows=&quot;106,*&quot; framespacing=&quot;0&quot; frameborder=&quot;0&quot; border=&quot;0&quot;>
<frame name=&quot;banner&quot; src=&quot;banner.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; noresize>
<frameset cols=&quot;157,*&quot; framespacing=&quot;0&quot; frameborder=&quot;0&quot; border=&quot;0&quot;>
<frame name=&quot;toc&quot; src=&quot;toc.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;auto&quot; frameborder=&quot;0&quot; noresize>
<frame name=&quot;main&quot; src=&quot;home.cfm&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot; scrolling=&quot;yes&quot; frameborder=&quot;0&quot;>
</frameset>
</frameset>

<noframes>
<body>
You really should upgrade to a frames compatible browser.
</body>
</noframes>

</html>

Chris ;-) [sig][/sig]
 
Hi Chris,

Thank you for ur prompt reply. The actual problem that i have is: I have a login page. After the validate, I let user to access my index.html file. My index file has frame (1 html and 2 cfm's). The way I try to do is to force user to go to my login before they can access my index. I try to find a way that if user just enter my index.html, it won't let them unless she/he goes thru the validate process. It works if I point to single cfm with password protected but does not work for my html with frame in it.
I appreciate any help
Thank you [sig]<p>GH ((-:<br><a href=mailto:giahan@hotmail.com>giahan@hotmail.com</a><br>(-:[/sig]
 
Hi giahan...

After that validation page you must create a session variable or something to know that the user has logged in?

If so change your index.html file extension to index.cfm and check if the user has passed thru the validation process. If so, display the frame, if not send the user to your validation page.

I hope this help,
I am not 100% sure of your current design,
Chris ;-) [sig][/sig]
 
Hi Chris,

I have tried that but CF does not support frame, whatever I did, I got a blank page. I figured out a way to do it w/o using frame. I have tried build a frame.html that has frames. It displays all the content but if I changes that frame.html to frame.cfm, I get a blank page. I finished my design though. Thanks for helping me
[sig]<p>GH ((-:<br><a href=mailto:giahan@hotmail.com>giahan@hotmail.com</a><br>(-:[/sig]
 
Hey giahan!

mind posting your frame code (if you still have it since you found a solution without frames) in here so that we try to find why you were getting a blank page?

Because CF supporting or not frame is not relevant. Frame are made by HTML and CF is working with HTML. You were doing something wrong for sure... I did several pages with frame declaration included in .cfm files.

Anyway...
If you still have it and are interested to know why it wasnt working, post it here...

Thx,
Chris [sig][/sig]
 
Sure -- I am happy to. I want to design using frame rather than the way that I chose. I realllyyyyy like to know what's wrong with my code too. Thanks.

These are code for all my 4 files.


<-- my frame.html -->
<html>
<head>
<title>Frame html</title>
</head>

<frameset rows=&quot;159,160&quot;>
<frame src=&quot;test.html&quot;>
<frame src=&quot;test.cfm&quot;>
</frameset>
<noframes><body bgcolor=&quot;#FFFFFF&quot;>

</body></noframes>
</html>


<-- my frame.cfm -->
<html>
<head>
<title>Frame cfm</title>
</head>

<frameset rows=&quot;159,160&quot;>
<frame src=&quot;test.html&quot;>
<frame src=&quot;test.cfm&quot;>
</frameset>
<noframes><body bgcolor=&quot;#FFFFFF&quot;>

</body></noframes>
</html>


<--my test.html-->
<html>
<head>
<title>test.html file</title>
</head>

<body>
here is my test.html


</body>
</html>


<-- my test.cfm-->
<html>
<head>
<title>test.cfm file</title>
</head>

<body>
here is my test.cfm


</body>
</html>

)-:

[sig]<p>GH ((-:<br><a href=mailto:giahan@hotmail.com>giahan@hotmail.com</a><br>(-:[/sig]
 
Hi!

oh man...
hehehe that's so strange but well now it's working...

Change your frame.cfm file to:
<html>
<head>
<title>Frame cfm</title>
</head>

<frameset rows=&quot;159,160&quot;>
<frame src=&quot;test.html&quot;>
<frame src=&quot;test.cfm&quot;>
</frameset>

<noframes>
<body bgcolor=&quot;#FFFFFF&quot;>
</body>
</noframes>
</html>

and it will work... If you put the HTML comment at the top of it (like you did) it doesnt work if you remove it it works...

Have fun,
Chris [sig][/sig]
 
Hi,

The comments that I made is just for u to look at easily. In my cfm and html files, I don't have any comments.
Thanks
[sig]<p>GH ((-:<br><a href=mailto:giahan@hotmail.com>giahan@hotmail.com</a><br>(-:[/sig]
 
Hi,

well the frame.cfm that I pasted you works here...
Dont know why it is not working on your side...

Chris [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top