Click here to Skip to main content
16,004,782 members
Home / Discussions / Web Development
   

Web Development

 
Generalproblems with Aol & IE browser detection Pin
satyav30-Jun-04 4:01
satyav30-Jun-04 4:01 
Questionhow to download .txt file Pin
Member 120813929-Jun-04 23:34
Member 120813929-Jun-04 23:34 
AnswerRe: how to download .txt file Pin
Bullschmidt5-Jul-04 21:15
Bullschmidt5-Jul-04 21:15 
GeneralRe: how to download .txt file Pin
Member 12081397-Jul-04 1:41
Member 12081397-Jul-04 1:41 
GeneralLayout in C++ IElementBehaviors Pin
Andyh29-Jun-04 23:01
Andyh29-Jun-04 23:01 
GeneralMTS Pin
naresh_pandey1328-Jun-04 22:16
naresh_pandey1328-Jun-04 22:16 
GeneralRe: MTS Pin
Member 120813929-Jun-04 23:40
Member 120813929-Jun-04 23:40 
Generalresize iframe to size of contents Pin
krisp28-Jun-04 11:25
krisp28-Jun-04 11:25 
I would like to resize an iframe to the offsetWidth and offsetHeight of the contents in the iframe. However, It requires me to set a timeout so that the offset sizes can be determined. If I dont set a timeout, it seems that IE has not fully deteremined the offset sizes and therefore the iframe gets sized to be too small. Especially when there are images in the contents of the iframe.

But if I wait one second, IE has by then rendered everything and it knows the actual offset sizes of the contents of the iframe.

This seems like a horrible way to achieve this functionality. Is there any javascript event that fires once the actual layout has been determined?

function ResizePage(WaitASec)
{
if (window.frameElement)
{
if (WaitASec)
{
window.setTimeout("ResizePage(false);", 1000);
return;
}
window.frameElement.style.height = document.getElementsByTagName('div')[0].offsetHeight;
window.frameElement.style.width = document.getElementsByTagName('div')[0].offsetWidth;
}
}
GeneralRe: resize iframe to size of contents Pin
l a u r e n28-Jun-04 18:59
l a u r e n28-Jun-04 18:59 
Generalchanging default buttons Pin
Mike Hodnick28-Jun-04 5:47
Mike Hodnick28-Jun-04 5:47 
GeneralRe: changing default buttons Pin
OBRon28-Jun-04 10:21
OBRon28-Jun-04 10:21 
Generalrenewing a document.write Pin
Member 10559028-Jun-04 5:14
Member 10559028-Jun-04 5:14 
GeneralRe: renewing a document.write Pin
l a u r e n28-Jun-04 19:01
l a u r e n28-Jun-04 19:01 
GeneralRe: renewing a document.write Pin
Member 12016744-Jul-04 8:07
Member 12016744-Jul-04 8:07 
GeneralAlert Manager Pin
Member 52474028-Jun-04 0:21
Member 52474028-Jun-04 0:21 
GeneralDear all, Pin
Anonymous27-Jun-04 23:11
Anonymous27-Jun-04 23:11 
GeneralEnglish & Arabic letters Pin
Anonymous27-Jun-04 21:41
Anonymous27-Jun-04 21:41 
GeneralRe: English & Arabic letters Pin
Hesham Amin28-Jun-04 22:09
Hesham Amin28-Jun-04 22:09 
GeneralRe: English & Arabic letters Pin
mysorian12-Aug-04 6:36
professionalmysorian12-Aug-04 6:36 
Generalaccessing out parameters of .net web service methods Pin
Prasadsm26-Jun-04 22:51
Prasadsm26-Jun-04 22:51 
GeneralMaking chat box Pin
Anonymous26-Jun-04 5:16
Anonymous26-Jun-04 5:16 
GeneralRe: Making chat box Pin
Tarakeshwar Reddy27-Jun-04 20:19
professionalTarakeshwar Reddy27-Jun-04 20:19 
GeneralFile System Object Pin
Anonymous26-Jun-04 3:57
Anonymous26-Jun-04 3:57 
GeneralRe: File System Object Pin
Hesham Amin26-Jun-04 4:03
Hesham Amin26-Jun-04 4:03 
GeneralRe: File System Object Pin
mysorian12-Aug-04 10:31
professionalmysorian12-Aug-04 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.