control position of web form in browser


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: control position of web form in browser

  1. #1
    John A Grandy Guest

    control position of web form in browser

    how does one control the positioning of a web form in a browser (i.e. how
    much scrolled-down it is)



  2. #2
    Russell Jones Guest

    Re: control position of web form in browser

    One way is to use the ScrollIntoView command to set an item to appear at the
    top of the browser window. The command causes the page to scroll until a
    specified control or element is visible. Another is to use the
    window.scroll, scrollBy or scrollTo methods.

    In the Help index, enter DHTML References to find a complete list of browser
    and element methods and properties.

    "John A Grandy" <johnagrandy@csi.com> wrote in message
    news:3d262b0b$1@10.1.10.29...
    > how does one control the positioning of a web form in a browser (i.e. how
    > much scrolled-down it is)
    >
    >




  3. #3
    John A Grandy Guest

    Re: control position of web form in browser

    scrollintoview apparently does not apply to web controls. here is the build
    error:

    'scrollIntoView' is not a member of 'System.Web.UI.WebControls.Label'



    "Russell Jones" <arj1@nospam.northstate.net> wrote in message
    news:3d2672b7$1@10.1.10.29...
    > One way is to use the ScrollIntoView command to set an item to appear at

    the
    > top of the browser window. The command causes the page to scroll until a
    > specified control or element is visible. Another is to use the
    > window.scroll, scrollBy or scrollTo methods.
    >
    > In the Help index, enter DHTML References to find a complete list of

    browser
    > and element methods and properties.
    >
    > "John A Grandy" <johnagrandy@csi.com> wrote in message
    > news:3d262b0b$1@10.1.10.29...
    > > how does one control the positioning of a web form in a browser (i.e.

    how
    > > much scrolled-down it is)
    > >
    > >

    >
    >




  4. #4
    Russell Jones Guest

    Re: control position of web form in browser

    ScrollIntoView is a DHTML method, and thus it runs on the client, not the
    server. You'll need to write a client-side script to scroll the screen where
    you want it. Why don't you have a look at the DHTML References that I
    referred to in my previous note?

    Russell Jones,
    Executive Editor,
    DevX.com


    "John A Grandy" <johnagrandy@csi.com> wrote in message
    news:3d2783a9@10.1.10.29...
    > scrollintoview apparently does not apply to web controls. here is the

    build
    > error:
    >
    > 'scrollIntoView' is not a member of 'System.Web.UI.WebControls.Label'
    >
    >
    >
    > "Russell Jones" <arj1@nospam.northstate.net> wrote in message
    > news:3d2672b7$1@10.1.10.29...
    > > One way is to use the ScrollIntoView command to set an item to appear at

    > the
    > > top of the browser window. The command causes the page to scroll until a
    > > specified control or element is visible. Another is to use the
    > > window.scroll, scrollBy or scrollTo methods.
    > >
    > > In the Help index, enter DHTML References to find a complete list of

    > browser
    > > and element methods and properties.
    > >
    > > "John A Grandy" <johnagrandy@csi.com> wrote in message
    > > news:3d262b0b$1@10.1.10.29...
    > > > how does one control the positioning of a web form in a browser (i.e.

    > how
    > > > much scrolled-down it is)
    > > >
    > > >

    > >
    > >

    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center