473,856 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

fill the parent window height using 100%

6 New Member
HELLO ALL,
I want to fill the parent window height with respect to the sub window height which is loading using ajax (mootools).
For example if the parent window height is normal and the loading child window height is 1200px (saying), when the child window load the height of the parent window changs but the backgorund color which is given 100% not fill the parent window.

I have given my example codes, please give a solution as soon as possible,

Thank You,

this is my javascript named as effect.js
Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3.             function dimBg() {
  4.                 document.getElementById("contentarea").style.visibility = "hidden";
  5.                 var conjoin = new Chain();
  6.                 function fadeinBg(){
  7.                     var dimmerObj = new Fx.Style($('Bg'), 'opacity', {duration: 200, transition: Fx.Transitions.Quart.easeInOut});
  8.                     dimmerObj.start(0.0,0.75); // fade in Bg
  9.                 }
  10.                 function fadeinqwe(){
  11.                     var dimmerObj = new Fx.Style($('midim'), 'opacity', {duration: 200, transition: Fx.Transitions.Quart.easeInOut});
  12.                     dimmerObj.start(0.0,0.5); // fade in Bg
  13.                 }
  14.                 function fadeinPage(){
  15.                     var focusObj = new Fx.Style($('contentarea'), 'opacity', {duration: 500, transition: Fx.Transitions.Quart.easeInOut});
  16.                     focusObj.start(0,1); // fade in contentarea.
  17.                 }
  18.                 conjoin.chain(fadeinBg);
  19.                 conjoin.chain(fadeinqwe);
  20.                 conjoin.chain(fadeinPage);
  21.                 conjoin.callChain();
  22.                 conjoin.callChain.delay(200, conjoin);
  23.                 conjoin.callChain.delay(1900, conjoin);                
  24.             }
  25.  
  26.  
  27.                 // load link on top of the homepage itself using AJAX.
  28.  
  29.                 var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no)
  30.                 var loadedobjects=""
  31.                 var rootdomain="http://"+window.location.hostname
  32.                 var bustcacheparameter=""
  33.  
  34.                 function loadLink(url, containerid){
  35.                     // start link load by dimming out the BG.
  36.                     dimBg();
  37.  
  38.                     var page_request = false
  39.                     if (window.XMLHttpRequest) // if Mozilla, Safari etc
  40.                         page_request = new XMLHttpRequest()
  41.                     else if (window.ActiveXObject){ // if IE
  42.                         try {
  43.                             page_request = new ActiveXObject("Msxml2.XMLHTTP")
  44.                         } 
  45.                         catch (e){
  46.                             try{
  47.                                 page_request = new ActiveXObject("Microsoft.XMLHTTP")
  48.                             }
  49.                         catch (e){}
  50.                         }
  51.                     }
  52.                     else
  53.                     return false
  54.                     page_request.onreadystatechange=function(){
  55.                         loadpage(page_request, containerid)
  56.                     }
  57.                     if (bustcachevar) //if bust caching of external page
  58.                         bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime()
  59.                         page_request.open('GET', url+bustcacheparameter, true)
  60.                         page_request.send(null)
  61.                     }
  62.  
  63.                     function loadpage(page_request, containerid){
  64.                         if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1))
  65.                         document.getElementById(containerid).innerHTML=page_request.responseText
  66.                     }
  67.  
  68.                     function loadobjs(){
  69.                         if (!document.getElementById)
  70.                         return
  71.                         for (i=0; i<arguments.length; i++){
  72.                             var file=arguments[i]
  73.                             var fileref=""
  74.                             if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
  75.                                 if (file.indexOf(".js")!=-1){ //If object is a js file
  76.                                     fileref=document.createElement('script')
  77.                                     fileref.setAttribute("type","text/javascript");
  78.                                     fileref.setAttribute("src", file);
  79.                                 }
  80.                             else if (file.indexOf(".css")!=-1){ //If object is a css file
  81.                                 fileref=document.createElement("link")
  82.                                 fileref.setAttribute("rel", "stylesheet");
  83.                                 fileref.setAttribute("type", "text/css");
  84.                                 fileref.setAttribute("href", file);
  85.                             }
  86.                         }
  87.                         if (fileref!=""){
  88.                             document.getElementsByTagName("head").item(0).appendChild(fileref)
  89.                             loadedobjects+=file+" " //Remember this object as being already added to page
  90.                         }
  91.                     }
  92.                 }
  93.  
  94.  
  95.  
parent window html file
Expand|Select|Wrap|Line Numbers
  1.  
  2. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  3. "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  7. <script type="text/javascript" src="mootools.js"></script>
  8. <script type="text/javascript" src="effects.js"></script>
  9. <title>Untitled Document</title>
  10. <script type="text/javascript">
  11. function dimtest(){
  12. document.getElementById('bg').style.visibility="visible";
  13. }
  14. </script>
  15. <style type="text/css">
  16. body{
  17. border-bottom:0px;
  18. border-left:0px;
  19. border-right:0px;
  20. border-top:0px;
  21. height:100%;
  22. margin:0px;
  23. }
  24. .outer {width:100%; height:100%;background:#000000; border-bottom:0px; border-right:0px; border-right:0px; border-top:0px; margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:-50px; visibility:hidden;}
  25. .footer {width:100%;height:100%;background:yellow}
  26. </style>
  27. </head>
  28.  
  29. <body>
  30. <div id="Bg" class="outer" ></div>
  31.         <div style="width: 100%; position: absolute; top: 0px;  left: 0px; z-index:40;">
  32.             <div id="contentarea" style="margin:90px auto; margin:5% 5%;width:90%;  position:absolute; background-color:#FFFFFF; visibility:hidden; "></div>
  33.         </div>
  34. <div id="midim" style="top:100px;left:500px; position:absolute; font-size:36px; color:#990000; "><a id="dimbg();" href="javascript:loadLink('testround.html', 'contentarea');" >click here</a></div>
  35. </body>
  36. </html>
  37.  
  38.  
  39.  
this is the child window which i named as testround.html
Expand|Select|Wrap|Line Numbers
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html>
  3. <head>
  4. <title>Nifty Corners: HTML CSS rounded corners</title>
  5. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  6. <meta name="generator" content="HAPedit 3.1">
  7. <style type="text/css">
  8. body{padding: 20px;background-color: #FFF;
  9.     font: 100.01% "Trebuchet MS",Verdana,Arial,sans-serif; height:100%;}
  10. h1,h2,p{margin: 0 10px}
  11. h1{font-size: 250%;color: #FFF}
  12. h2{font-size: 200%;color: #f0f0f0}
  13. p{padding-bottom:1em}
  14. h2{padding-top: 0.3em}
  15. div#nifty{ margin: 0 10%;background: #9BD1FA}
  16.  
  17. b.rtop, b.rbottom{display:block;background: #FFF}
  18. b.rtop b, b.rbottom b{display:block;height: 1px;
  19.     overflow: hidden; background: #9BD1FA}
  20. b.r1{margin: 0 5px}
  21. b.r2{margin: 0 3px}
  22. b.r3{margin: 0 2px}
  23. b.rtop b.r4, b.rbottom b.r4{margin: 0 1px;height: 2px}
  24. </style>
  25. </head>
  26. <body>
  27. <div id="nifty">
  28. <b class="rtop"><b class="r1"></b><b class="r2"></b><b class="r3"></b><b class="r4"></b></b>
  29. <h1>Nifty Corners</h1>
  30. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  31. <h2>Rounded corners without images</h2>
  32. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  33. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  34. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  35. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  36. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  37. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  38. uaeuueuu eeue ieu.</p>
  39. <h1>Nifty Corners</h1>
  40. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  41. <h2>Rounded corners without images</h2>
  42. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  43. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  44. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  45. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  46. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  47. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  48. uaeuueuu eeue ieu.</p>
  49. <h1>Nifty Corners</h1>
  50. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  51. <h2>Rounded corners without images</h2>
  52. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  53. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  54. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  55. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  56. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  57. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  58. uaeuueuu eeue ieu.</p>
  59. <h1>Nifty Corners</h1>
  60. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  61. <h2>Rounded corners without images</h2>
  62. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  63. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  64. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  65. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  66. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  67. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  68. uaeuueuu eeue ieu.</p>
  69. <h1>Nifty Corners</h1>
  70. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  71. <h2>Rounded corners without images</h2>
  72. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  73. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  74. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  75. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  76. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  77. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  78. uaeuueuu eeue ieu.</p>
  79. <h1>Nifty Corners</h1>
  80. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  81. <h2>Rounded corners without images</h2>
  82. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  83. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  84. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  85. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  86. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  87. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  88. uaeuueuu eeue ieu.</p>
  89. <h1>Nifty Corners</h1>
  90. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  91. <h2>Rounded corners without images</h2>
  92. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  93. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  94. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  95. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  96. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  97. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  98. uaeuueuu eeue ieu.</p>
  99. <h1>Nifty Corners</h1>
  100. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  101. <h2>Rounded corners without images</h2>
  102. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  103. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  104. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  105. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  106. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  107. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  108. uaeuueuu eeue ieu.</p>
  109. <h1>Nifty Corners</h1>
  110. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  111. <h2>Rounded corners without images</h2>
  112. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  113. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  114. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  115. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  116. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  117. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  118. uaeuueuu eeue ieu.</p>
  119. <h1>Nifty Corners</h1>
  120. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  121. <h2>Rounded corners without images</h2>
  122. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  123. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  124. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  125. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  126. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  127. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  128. uaeuueuu eeue ieu.</p>
  129. <h1>Nifty Corners</h1>
  130. <p>Auiiui  uieiouo auuaa oiaue uaou iioiiou uiio a io ieeoai uaouoe uoiaau eeauauou u oiauuie eo ui.</p>
  131. <h2>Rounded corners without images</h2>
  132. <p>Aaeao aiieuouiu io ueuiieu uei oeio uooiau uue ooiea ooiaui eue ouue i uiaoo iouieiuia uueeo ieieuiiau
  133. ueaooa iou iaeieuo uoao iauoi u i oeioooe auo a ooe u uuuo oaooaae uoa iuiuiaeu iioaeu uuiu eeu ea eouoiuo ua o.</p>
  134. <p>Iiuiuaea ouea ieuuio o i iuo oiei uoeeou ieoau uaeeiu uouooa uiaiaue ii oo iei eiaiueoo iaoa euiaou uoia
  135. uuei ua aoauia ieoae eioiaia eu uiueeiui ueuaiuo uaa eie oaeee uau ooieoi uoii oeuioei uouiiuu ioeiuoe eaeuoi.</p>
  136. <p>Iueuouii  eei iueoie i iooououe eoio eeeuoeio u eu ee uueeo eiuoi iooeiu uuiei uiaeo oaaoo iuu uuue
  137. auo au o ooueooii oueui aeeeau uoeoeee aeuaea aoeuoieeo aio aaiio iuouau e aouueuuie oiieae eioii oeeiu
  138. uaeuueuu eeue ieu.</p>
  139. <b class="rbottom"><b class="r4"></b><b class="r3"></b><b class="r2"></b><b class="r1"></b></b>
  140. </div>
  141. </body>
  142. </html>
  143.  
please help, your help will be greatefull to me..
thank you so much..
Apr 16 '08 #1
1 3608
acoder
16,027 Recognized Expert Moderator MVP
Have you tried this without any effects, simply loading the page via Ajax?
Apr 17 '08 #2

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

Similar topics

8
1888
by: Steve McLellan | last post by:
Hi, I'm trying to add panels to a parent panel programatically. I'd like them to all take up an equal amount of the parent form as it's resized etc. Using Docking::Fill obviously causes one panel to expand to fill the entire parent, and I can't get a satisfactory result using Anchor - the leftmost controls start to take more than their fair share as the parent panel grows in size.. Can anyone suggest a way of doing this? Some kind of...
2
23532
by: Jeronimo Bertran | last post by:
Hi, I have a page with a very data intensive grid which needs to be automatically refreshed constantly if a change is detected. In order to not refresh the complete page so often, I created an iframe on my page whose html has the refresh meta as follows : <meta http-equiv="refresh" content="10"> The iframe is effectivelyh refreshed every 10 seconds without having the
5
4619
by: Peter | last post by:
1) I have a C# web application and what I am trying to do is create a popup window from a link on the parent window 2) the popup window will have a button and when a user clicks on the button the program should update a database, close the window and refresh the parent window. My question is does anyone have a example of popup window wich will close it's self and refresh the parent window when a user clicks on a button? I know there are...
6
1985
by: William Sullivan | last post by:
I want to fill a cell in a table with a control. Lets say the control is a listbox--something that you'd think would easily fill a cell, which would be a good thing. So I create the table and stick the control inside, setting its width and height to 100%. When I run the application, the control appears to be an arbitrary size, each edge a different distance from its relative edge. So, I go into the properties for the cell and set all...
1
2476
by: Socrates | last post by:
Hi - Have tried for half and hour to get this script to work: I am trying to close the parent window while opening a centred new child window I would be grateful if someone could correct the script below which does open a new window, but not in a centred position. Here is the link to the url:
1
2334
by: Richard | last post by:
Greetings. I am total newbie to Javascript so what is written below is probably a bunch of cobblers!! Any assistance in correcting my code much appreciated. I wish the popped up child to pass value from the select box to a text box on the parent form. Here are my pages (in part)
5
18192
by: TurboRogue | last post by:
So here's the basic premise: I have an html page with a bunch of pictures (pic.html). All of the images are thumbnails of larger photos. I also have another html page which is a pop-up window essentially (popup.html) (it's a standard html page that I've set to a smaller width/height by using javascript). The popup.html page has 2 divs in it, one with the area that I'm trying to populate dynamically with the full size image of the link that...
3
2924
by: soms2m | last post by:
hello, i want to make mt div to fill the whole window.. but by giving div height=100%, it dosn't work.. i've place my html code with this.. <!-- html code --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>div height</title>
0
9903
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9755
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10692
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7928
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7084
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4567
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4168
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.