Re: Frame size

Tech-Archive recommends: Fix windows errors by optimizing your registry



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.
>>
>>
>
>


.



Relevant Pages

  • RE: ObjectDataSource update using callback instead of postback
    ... the script call back event at ... serverside just provide an interface for us to make a post back to client ... access the FormView or any other controls in script callback (like what we ... do in normal postback). ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Ajax UpdatePanel DropDownList auto-repeat problem.
    ... troubles with the script inside a FormView and I wanted the first postback ... // TODO: ... /// Specifies the script to run to initiate a postback ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Postback of controls which have been modified in javascript
    ... property that will be postback every time such as TextBox's Text or List's ... the page are raised by the built-in postback script generated by the page ... Microsoft MSDN Online Support Lead ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: PostbackUrl
    ... Because cross.page postback is ... initiated by client-side script, and page posts directly to the target page, ... Whole point being that you'd really need to do it client-side scrupt if you ... Fine, that it redirects user to another page, allowing me to access all ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Framwork 1.1->2.0: PostBack error when client script is applied
    ... many other .NET control, dropdown lists, checkboxes. ... these controls generates a browser error, claiming error with this (Line: ... the client script, the postback is ok again. ...
    (microsoft.public.dotnet.framework.aspnet)