Click here to Skip to main content
15,920,111 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: gridview Pin
fmardani11-May-06 21:18
fmardani11-May-06 21:18 
QuestionRead Text File from URL Pin
wEb GuRu...10-May-06 4:23
wEb GuRu...10-May-06 4:23 
AnswerRe: Read Text File from URL Pin
albCode10-May-06 10:30
albCode10-May-06 10:30 
Questionreally IMPOSSIBLE? Pin
innocent7310-May-06 4:18
innocent7310-May-06 4:18 
AnswerRe: SmallDateTime Hell.. Pin
J4amieC10-May-06 4:26
J4amieC10-May-06 4:26 
GeneralRe: SmallDateTime Hell.. Pin
innocent7310-May-06 4:35
innocent7310-May-06 4:35 
GeneralRe: SmallDateTime Hell.. Pin
innocent7310-May-06 4:43
innocent7310-May-06 4:43 
GeneralRe: SmallDateTime Hell.. Pin
Bhasker Pinninti10-May-06 6:10
Bhasker Pinninti10-May-06 6:10 
GeneralRe: SmallDateTime Hell.. Pin
innocent7311-May-06 1:45
innocent7311-May-06 1:45 
AnswerNo it's easy... Pin
Steve McLenithan11-May-06 7:09
Steve McLenithan11-May-06 7:09 
Questionnot moveing Pin
ptvce10-May-06 4:18
ptvce10-May-06 4:18 
Questionnot moved Pin
ptvce10-May-06 4:16
ptvce10-May-06 4:16 
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 

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.