Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2006, 06:12 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to seph321
Default DIV - FRAME

This is the page with frames:
inicio.asp
<html>
<head>
<title>ReservaInfo - ver 1.0 - Colégio Universitário, Jundiaí - SP</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>



<frameset cols="396,387*" frameborder="YES" border="1" framespacing="1" rows="*">
  <frame name="info" scrolling="AUTO" src="blank.htm">
  <frameset rows="150,377*" frameborder="YES" border="1" framespacing="1" cols="*">
    <frame name="calendario" scrolling="NO" src="calendario.asp" >
    <frame name="semana" src="semana.asp">
  </frameset>
</frameset>
<noframes><body bgcolor="#FFFFFF">



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



Here i have the includes and div's to insert in inicio.asp

<div id="tudo">
<div id="conteudo">
</div>
</div>

Here is the page estilo.css
<style type="text/css">
body {
margin:0;
padding:0;
background:#ffffff;
text-align:center; /* hack para o IE */
 }
#tudo {
width: 760px;
margin:0 auto;
padding: 10px;
text-align:left; /* "remédio" para o hack do IE */
 }
#conteudo {
padding:0;
background-color: #ffffff;
text-size: 10px;
 }
</style>

I must insert the include and div's in início.asp, someone know how do this?

There's a second alternative, i need to centralize the frames in the page, because if i change the monitor resolution, the frames will continue normal and the pages will not be hide by the frame.
Thanks to all



 
Old December 5th, 2006, 07:20 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

;;;I must insert the include and div's in início.asp, someone know how do this?

mmmmm, forgive me if I have mis understood your question, cant be this simple, can it:

an include:


Divs:
Do you need to place your div tags in your style sheet? If so, why? if not place them in your page direct. Im not even sure you can place divs inside a .css - I know you can place the class for the div in the .css but have never seen div's in there. I have done it like so:

*.css page:
#layerName
{
 height: 400;
 left: 48%;
 position: absolute;
 top: 110px;
 width: 350;
 visibility: hidden;
 z-index:2;
}

The page where the div is:
<div name="layer6" id="layer6">
content here
</div>

Using that method you can place the div anywhere on your page. it does not have top be positioned, this is specified in the .css file as is the visibiity (in the example above)


;;There's a second alternative
Do you want your roblem solved or are you looking for an alternative? If the later what are you trying to achieve? If I may, a bit of my personal opinion; Only use frames unless you have a good reason to do so, IMO there are very few. Frames have many many draw backs unless coded very well. Do you mind me asking why you choose to use frames? If you would like to see the reasons why they can be so problematic type 'why are frames so bad' into Google - that is said constructivley from my experience.

Wind is your friend
Matt
 
Old December 6th, 2006, 12:10 PM
Authorized User
 
Join Date: Jan 2006
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello

Instead of including the .css file, you can link it directly in the html tag of incilo.asp as follows:

<HTML>
<HEAD>
<link href="estilo.css" rel=stylesheet>
</HEAD>
</html>

You only need to add 1 line code (ie <link ..>) and you can use the .css file throught out your asp page.

Hope this will help you solve your problem.


Regards,
Soni





Similar Threads
Thread Thread Starter Forum Replies Last Post
avoiding a <div> to go under the frame nerssi Javascript 2 April 7th, 2007 07:19 AM
How to set one frame src from other frame akumarp2p ASP.NET 1.x and 2.0 Application Design 2 March 13th, 2007 04:13 AM
div within a div and inherting the height brettdavis4 CSS Cascading Style Sheets 1 January 23rd, 2007 09:59 AM
parsing form data from frame to other frame audio-catalyst Classic ASP Basics 5 January 3rd, 2006 02:57 PM
Call right frame Page_Load event from left frame. ochanarachel Classic ASP Basics 0 January 28th, 2005 05:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.