473,324 Members | 2,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

using doc type and Iframe

shoonya
161 100+
when I am using any of the doc type
i am not able to assign height to Iframe inside the page
i am tying

Expand|Select|Wrap|Line Numbers
  1. <iframe height=x% ...
or even using javascript i am not able to assign it height which is working fine if i remove the doctype
it is taking some default height each time
Is there any way to do this

shoonya
Jun 25 '07 #1
9 11136
drhowarddrfine
7,435 Expert 4TB
When using frames, you should use the frameset doctype. Not using a doctype is out of the question.

Which browser are you having problems with?
Jun 25 '07 #2
shoonya
161 100+
mozilla

i think i missed i this dtd

let me try

thanks for such a quick reply

shoonya
Jun 25 '07 #3
shoonya
161 100+
@ drhowarddrfine

Expand|Select|Wrap|Line Numbers
  1. HTML 4.01 Strict, Transitional, Frameset
  2.  
  3. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  4. "http://www.w3.org/TR/html4/strict.dtd">
  5.  
  6.  
  7. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  8. "http://www.w3.org/TR/html4/loose.dtd">
  9.  
  10.  
  11. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
  12. "http://www.w3.org/TR/html4/frameset.dtd">
  13.  
  14. XHTML 1.0 Strict, Transitional, Frameset
  15.  
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  17. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  18.  
  19.  
  20. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  21. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  22.  
  23.  
  24. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
  25. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
  26.  
  27. XHTML 1.1 DTD
  28.  
  29. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
  30. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
can you tell me which one i have to use for Iframes ??

shoonya
Jun 25 '07 #4
shoonya
161 100+
Expand|Select|Wrap|Line Numbers
  1. document.getElementById('frame_name').style.height = '500px'
i am calling this line on
Expand|Select|Wrap|Line Numbers
  1. onload
event

shoonya
Jun 25 '07 #5
drhowarddrfine
7,435 Expert 4TB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">

I'm all packed and leaving for out of town till around Thursday.
Jun 25 '07 #6
shoonya
161 100+
it changes some of my setting
like i have set top-margin, bottom-margin, right-margin, left-margin of body to 0
but this DTD is forcing some space there around the border

also the previous problem is not solved

shoonya
Jun 25 '07 #7
AricC
1,892 Expert 1GB
it changes some of my setting
like i have set top-margin, bottom-margin, right-margin, left-margin of body to 0
but this DTD is forcing some space there around the border

also the previous problem is not solved

shoonya
What exactly is the problem? Do you have a link? I would recommend not using framesets.
Jun 25 '07 #8
shoonya
161 100+
Expand|Select|Wrap|Line Numbers
  1. <html>
  2.  
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
  5. <title>New Page 1</title>
  6. <script language=javascript>
  7.  
  8. function resize(){
  9. document.getElementById('center_frame').style.height=parseInt(document.getElementById('pseudo_body').clientHeight)-parseInt(document.getElementById('header_content').clientHeight)
  10. }
  11. </script>
  12. </head>
  13.  
  14. <body style="overflow:auto" topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 onload=resize()>
  15.  
  16. <table id=pseudo_body width=100% height=100% cellpadding=0 cellspacing=0>
  17.    <tr>
  18.        <td id=header_content>
  19. -----
  20. ----
  21.       </td>
  22.   </tr>
  23.   <tr>
  24.     <td height=100%>
  25.  
  26.    <iframe name="center_frame" id=center_frame width=100%  class=frame   border="0" frameborder="0" marginwidth="10" marginheight="10">
  27. ---
  28. --
  29. </iframe>
  30.  
  31.     </td>
  32.   </tr>
  33. </table>
  34.  
  35. </body>
  36. </html>
this is my page
now the height of the iframe is not getting assigned after i use doctype
hope i am clear

shoonya
Jun 26 '07 #9
Hello

This is the correct doctype (for iframes):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">

Bye
Sep 26 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Russell | last post by:
I have a quirky issue that I believe involves timing and only 2 hairs left to pull. I have a modal dialog that is an IFrame. The IFrame contains another window - which contains the appropriate...
3
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
8
by: '69 Camaro | last post by:
Perhaps I'm Googling for the wrong terms. Does anyone have links to examples of the syntax necessary to read the HTML on another Web page when that HTML is produced from JavaScript using the...
2
by: bj | last post by:
Hi, Yes, this is yet another "switching from tables to divs for layout purposes" post. I have been searching for the past few hours to find what I'm looking for as I hate posting unnecessarily....
1
by: tilt | last post by:
Hello, I use an object element to replace the iframe element in ie, like this: <object id="x_obj" data="http://.../" type="text/html"> <iframe name="x_if" id="x_if"...
3
by: Senthil | last post by:
Hi all I'm new in ajax. How to upload a image using ajax..
3
by: synergy_711 | last post by:
I feel like this should be fairly easy but I have been struggling with this for sometime. I have not been able to find someone who's had the same problem as mine yet. ...
11
by: Dudely | last post by:
The following file, as far as I know, should work. However, I get a blank page. Using IE 7 "test2.html" is a simple file which has nothing more than "Goodbye World" in it. Am I doing...
1
by: harshavardhan | last post by:
Hi, here is the problem: Consider there are three frames in a HTML page. When I try to print these frames using java script, only the third document is being printed thrice. <HTML><HEAD> <script...
3
by: kksandeep | last post by:
i am using this three files to uplod file. i got this file from net but i think these have some error. i am new to this field plz help the script i found is some helpful but not too that i need ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.