Re: Frame size
- From: "Just D." <no@xxxxxxxxxxx>
- Date: Wed, 30 Mar 2005 13:26:48 -0700
Thanks Bruce,
What do you think is it a good idea to initiate a postback every time on
resize? If we add to the same script something to postback will it work
properly?
The idea was to force the IE redraw the picture on each resize to draw it
correctly.
Just D.
"Bruce Barker" <brubar_nospamplease_@xxxxxxxxxx> wrote in message
news:uXkO7HWNFHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
> window.onresize = function() {
> document.getElementsByName('size')[0].value = document.body.clientHeight
> + "|" + document.body.clientWidth;
> }
>
> where size is the name of the hidden field. note the C# code will not see
> the value until a postback.
>
> -- bruce (sqlwork.com)
>
>
>
>
> "Just D." <no@xxxxxxxxxxx> wrote in message
> news:5tC2e.2476$k57.2342@xxxxxxxxxxxxx
>> How can we get the frame size or the windows size? What JAVA script
>> should we use to get it in C# codebehind? Is it correct that we can use
>> the jAVA script onload and onresize to get the current window/frame size
>> and save these values to the hidden controls on the page to read them
>> from the C# code?
>>
>> Can anybody send an example of this JAVA script?
>>
>> Thanks,
>> Just D.
>>
>>
>
>
.
- Follow-Ups:
- Re: Frame size
- From: darrel
- Re: Frame size
- References:
- Frame size
- From: Just D.
- Re: Frame size
- From: Bruce Barker
- Frame size
- Prev by Date: Re: generate random password
- Next by Date: Re: moving from vb.net to c#
- Previous by thread: Re: Frame size
- Next by thread: Re: Frame size
- Index(es):
Relevant Pages
|