Click here to Skip to main content
15,896,063 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: not moved Pin
albCode10-May-06 10:33
albCode10-May-06 10:33 
GeneralRe: not moved Pin
cheeken2u10-May-06 16:54
cheeken2u10-May-06 16:54 
GeneralRe: not moved Pin
_AK_10-May-06 18:39
_AK_10-May-06 18:39 
GeneralRe: not moved Pin
albCode10-May-06 19:32
albCode10-May-06 19:32 
GeneralRe: not moved Pin
ptvce10-May-06 22:29
ptvce10-May-06 22:29 
QuestionSet Iframe width Pin
Insane D10-May-06 3:42
Insane D10-May-06 3:42 
AnswerRe: Set Iframe width Pin
leckey10-May-06 4:25
leckey10-May-06 4:25 
AnswerRe: Set Iframe width Pin
Insane D11-May-06 2:27
Insane D11-May-06 2:27 
Ookay,
After about a full day searching on the internet I finally found a solution.

       <br />
 function resize_iframe()<br />
        {<br />
            var currentfr=document.getElementById("ctl00_PlaceHolderPSAHNNIntranet_iFrameRunningApplication");<br />
            var detect = navigator.userAgent;<br />
            place = detect.indexOf("MSIE");<br />
           <br />
            //if msie is not present in the string...<br />
            if (place == - 1) //Firefox<br />
            {<br />
                currentfr.width = currentfr.contentDocument.body.offsetWidth;                    <br />
                currentfr.width = eval(currentfr.width) + eval("16");<br />
<br />
                //change the height of the iframe<br />
                currentfr.height= currentfr.contentWindow.document.documentElement.scrollHeight +16; //window.outerHeight + 16; <br />
            }<br />
            else //Internet Explorer<br />
            {<br />
                currentfr.height = currentfr.Document.body.scrollHeight;<br />
                currentfr.width = currentfr.Document.body.scrollWidth + 15;<br />
            }<br />
        } <br />


Now I only need to find out how to get the Iframe to become smaller again, after a larger page had been inserted into it.

Edit: I found a solution for that aswell. Just put
<br />
currentfr.height = 15; //or any other height<br />

in the begining of the function. This will sort of reset the height.

-- modified at 9:07 Thursday 11th May, 2006
QuestionBinding objectdatasource to an object Pin
moazzamahmed10-May-06 3:40
moazzamahmed10-May-06 3:40 
AnswerRe: Binding objectdatasource to an object Pin
minhpc_bk10-May-06 15:24
minhpc_bk10-May-06 15:24 
QuestionUnable to disable caching Pin
Mornz10-May-06 3:35
Mornz10-May-06 3:35 
AnswerRe: Unable to disable caching Pin
chinnasrihari10-May-06 3:42
chinnasrihari10-May-06 3:42 
GeneralRe: Unable to disable caching Pin
Mornz10-May-06 4:06
Mornz10-May-06 4:06 
Questionsmtp port Pin
Bhasker Pinninti10-May-06 2:38
Bhasker Pinninti10-May-06 2:38 
AnswerRe: smtp port Pin
chinnasrihari10-May-06 2:59
chinnasrihari10-May-06 2:59 
AnswerRe: smtp port Pin
chinnasrihari10-May-06 3:17
chinnasrihari10-May-06 3:17 
QuestionSecurity with WSE 3.0 Pin
dumser110-May-06 2:33
dumser110-May-06 2:33 
QuestionSystem.IO Problem? Pin
MudkiSekhon10-May-06 1:42
MudkiSekhon10-May-06 1:42 
AnswerRe: System.IO Problem? Pin
J4amieC10-May-06 2:10
J4amieC10-May-06 2:10 
GeneralRe: System.IO Problem? Pin
MudkiSekhon10-May-06 2:18
MudkiSekhon10-May-06 2:18 
GeneralRe: System.IO Problem? Pin
Paddy Boyd10-May-06 5:29
Paddy Boyd10-May-06 5:29 
GeneralRe: System.IO Problem? Pin
MudkiSekhon10-May-06 18:27
MudkiSekhon10-May-06 18:27 
GeneralRe: System.IO Problem? Pin
Paddy Boyd10-May-06 22:09
Paddy Boyd10-May-06 22:09 
QuestionOPEN XML Updation Pin
NICE TO MEET10-May-06 1:12
NICE TO MEET10-May-06 1:12 
QuestionHow to adjust the border of a listbox Pin
Insane D10-May-06 1:05
Insane D10-May-06 1:05 

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.