|
It will take the height of it's container...so if BODY is your container it should take up the whole screen...
Test my theories and set the border: 1px solid black
Trial and error works best I find...
Cheers
How do I print my voice mail?
|
|
|
|
|
Well, it doesnt take the height of its container, thats what I though initially too.
<br />
<Body><br />
<div style="height:100%;"><br />
<div style="height:100px;">Some text here</div><br />
<div style="height:100%;">Some text here</div><br />
<div style="height:100px;">Some text here</div><br />
</div><br />
</body><br />
The above code will make my page to scroll... and I dont want it to scroll... any ideas?
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
Actually, yes it does, but you have to nest the DIV's inside of other containers, and you can't have one that has 100% height along with two that have pixel height...
<div style="height:100%; border: 1px solid #000000">
<div style="height:100px; border: 1px solid #000000">Some text here
<div style="height:100%; border: 1px solid #000000">Some text here
<div style="height:100px; border: 1px solid #000000">Some text here </div>
</div>
</div>
</div>
|
|
|
|
|
ok... I see... So unless you specify the height of the container the DIV will expand to the height of the BODY if set to height:100%; ???..
So, what if (in your example) you want to have another DIV of height 100px at the bottom of the page while keeping the outermost DIV at 100% height?
What I am trying to do is to have a header DIV a footer DIV and a DIV in the middle that will expand to 100%.
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
OK, the closest I could get to your goal is this:
<div style="height:100%; border: 1px solid #000000">
<div style="height:100px; border: 1px solid #000000">
</div>
<div style="height:75%; border: 1px solid #000000">
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
<p>Content Goes Here</p>
</div>
<div style="height:100px; border: 1px solid #000000">
</div>
</div>
Try it out and see if it works for you.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
I thought of that myself too...
So there is no way to do it properly without using TABLES, unless if I detect the size using JavaScript and the DOM and set it accordingly each time I load a page, refresh it or even when I resize the window...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
That's exactly what I was thinking while I was writing that last snippet.
p.s.: isn't it spelled "habit" not "habbit"?
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Well,
I don't want to use client side sripting to set the layout of my page. For some reason I get the feeling that I should't do it...
It is disapointing though, I cannot understand why W3C didn't provide some way of doing this with CSS. They have been trying to encourage people not to use TABLEs for setting the layout of pages and use CSS instead. From what I can see they haven't provided a good alternative solution. To be fair though, you can do some good things with CSS, but still, you cannot do everything.
And yes its is habit... thanks!.;P
theJazzyBrain
Excelence is not an act, but a habit Aristotle
|
|
|
|
|
Tables are still my whole world... I only use CSS positioning when I create something that I know I will limit to fit inside of a browser window at maximized 800 X 600 resolution.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi everyone
I've been developing a tab navigation lately using XML. Now I'm trying to
put all things together. I have 2 nested tabs.I would like to know what is
the best way to assembly when I click on a button on the tab the content
will appear below. There are mutiple ways out there, I would like to know
the most efficient way of your solution
Thanks
|
|
|
|
|
Use hidden DIVs and with JavaScript set them to show or hide as needed. Use the display: none; property rather than visibility: hidden; though as the former will then not take up any space.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
I have done the same with TABLES and content for every TAB was included in a TR of the TABLE. Then set the DISPLAY style of each TR to either BLOCK or NONE.
If I was to do somehting like this again I would use DIVs instead as the other fellow CPian suggested...
theJazzyBrain
Excelence is not an act, but a habbit Aristotle
|
|
|
|
|
I do it by having named div elements with style="display:none" or style="display:block" as appropriate.
You will put all the tab stuff inside the divs
Enjoy
|
|
|
|
|
Hello
this is sam, and I have a big problem with ASP !!!!
I want to retrieve data from a database and then send this data to a url as a query string.
ex: http://77.125.192.120:1428/Recieve.asp?tel=20123335357&Msg=Misssshhhhh%20this%20is%20this?&CC=20&user=SMS&pass=Ed3kWKad&enc=1
enc:
Encoding: if message is ucs2 =0;
if message is plain Text =1
and if the Msg is in arabic so it is encoded and then sent.
Please help me with this. how can i do it in VBScript, ADO ?
I want the application to be run without stopping, to send data to the url without stopping. any new data comes, is sent to the url directly.
yours
sam.
Sam2004
|
|
|
|
|
Since it seems like you are using "Classic" ASP and ADO, the solutions is something like the following:
Dim httpRequest, url, response, request
url = "http://www.mydomain.com/mypage.asp"
Set httpRequest = Server.CreateObject("WinHttp.WinHttpRequest.5")
httpRequest.Open "PUT", url, False
' declaring and opening a new connection and recordset omitted
Do While Not rs.EOF()
request = "myvar1=" & rs("field1") & "&myvar2=" & rs("field2")
httpRequest.Send request
response = HttpReq.ResponseText
rs.MoveNext()
Loop
Of course, if you were using the .NET Framework, you could use HttpWebResponse and HttpWebRequest to do the same thing.
You can look up "WinHTTP Interfaces" on MSDN for more information.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Hi,
I am having a weird problem which I suspect is a bug in the framework or VS.NET. Maybe some of you know how to fix this.
I have a project containing one .ASMX file and three datasets. However, when I fetch the XML schema of the webservice, only 2 of the 3 datasets show up!
The dataset that doesn't show up in the schema is the one I added last. I hear you... yes I did recompile, MANY times. I rebooted, restarted IIS. It keeps returning the schema of only the first 2 datasets.
Anyone has an idea of what the problem might be? I had a similar problem a few weeks ago... the schema always returned an OLD version of my dataset.
Your help is very much appreciated.
Thanks!
Carl
|
|
|
|
|
I have an old MFC app that I want to communicate with via classic ASP and later in the year, with ASP.NET. What's the best way to have my ASP page send messages to my MFC-EXE? I've tried shared memory and posting Windows messages to the MFC-EXE's window (or to all windows). Tried pipes as well. I gather that the ASP page is running in protected space by IIS and so there is a permission problem. What's the sanctioned or method of choice for such communication? I didn't want to go to sockets as I'm on the same machine. The MFC-EXE is running on the same computer as the ASP pages (under local IIS).
I was thinking about a named data section in a DLL shared by an IIS plug-in and my MFC-EXE. Also, what about doing an out of process OLE/COM server that I could get access to from the ASP page that was embedded in my MFC-EXE?? I have never done the later.
Any ideas or pointers appreciated.
VinMan
|
|
|
|
|
Hi, just been trying to create a table using the createElement method. Only trouble is it doesn't seem to be enough for it to work, i've only included the main , a , and 3 's. I've also set through the script all the peoperties needed.
Basically, is there a reason it's not displaying ¿
|
|
|
|
|
|
2 things, please.
1. What is happening, an error message or just zilch?
2. Post the code so we can disect and study it then provide you with the answer you seek.
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
There's zilch happening, although i scanned the doc's children and found they had been created, or there were a few div tags there anywho.
var chldT = document.createElement( "" ) ;
var chldR = document.createElement( "" ) ;
var chldC = document.createElement( "" ) ;
document.body.appendChild( chldT ) ;
chldT.appendChild( chldR ) ;
chldR.appendChild( chldC ) ;
chldC.innerText = "hello world!" ; |
|
|
|
|
|
This is bizarre, but to use appendChild and createElement for creating tables in Internet Explorer you must include a tbody .
So you need to do:
var chldT = document.createElement( "table" ) ;
var chldB = document.createElement( "tbody" ) ;
var chldR = document.createElement( "tr" ) ;
var chldC = document.createElement( "td" ) ;
chldC.innerText = "hello world!" ;
chldR.appendChild( chldC ) ;
chldB.appendChild( chldR ) ;
chldT.appendChild( chldB ) ;
document.body.appendChild( chldT ) ;
regards,
Paul Watson
Bluegrass
South Africa
Christopher Duncan quoted:
"...that would require my explaining Einstein's Fear of Relatives"
Crikey! ain't life grand?
Einstein says...
|
|
|
|
|
Wh00ps, forgot about that. Thats a pretty good way of doing it btw, create it all in the memory and then apply the whole table. Like it.
|
|
|
|
|
Having said that i've just noticed sorry, IE has specific functions to create table's, using insertRow insertCell etc.
|
|
|
|
|
Hi
I have an IFrame element with src attribute set to the url of an ASP page..
this I want this IFrame to be resized so all the text in the asp page can appear WITHOUT scroll bars ..
I there a way to do this ?
|
|
|
|
|
Can you not turn off the scroll?
|
|
|
|