anyone good with javascript!

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?UGF1bA==?=

    anyone good with javascript!

    Hi I have a webpage that is for data input and has a large number of controls
    on it. In the middle of the page there are 2 dropdown boxes main,and sub.
    when the page first loads only a is visible. If a user selects an item from
    the main dropdown I reload the page and make the second dropdown visible with
    sub items from the selection in the main dropdown. When this happens the
    user must scroll down to the middle of the page and I was wondering if there
    is a way to give focus on the second dropdown, not every time the page loads
    but only when a selection is made in the main dropdown.
    Thanks.
    --
    Paul G
    Software engineer.
  • Mark Rae [MVP]

    #2
    Re: anyone good with javascript!

    "Paul" <Paul@discussio ns.microsoft.co mwrote in message
    news:46974E8D-3181-43A4-894D-14D6A16FF5ED@mi crosoft.com...
    Hi I have a webpage that is for data input and has a large number of
    controls
    on it. In the middle of the page there are 2 dropdown boxes main,and sub.
    when the page first loads only a is visible. If a user selects an item
    from
    the main dropdown I reload the page and make the second dropdown visible
    with
    sub items from the selection in the main dropdown. When this happens the
    user must scroll down to the middle of the page and I was wondering if
    there
    is a way to give focus on the second dropdown, not every time the page
    loads
    but only when a selection is made in the main dropdown.
    // at the end of the code-behind event
    MySecondDropDow nList.Focus();


    --
    Mark Rae
    ASP.NET MVP


    Comment

    • =?Utf-8?B?UGF1bA==?=

      #3
      Re: anyone good with javascript!

      thanks, it worked, did not think it would be that easy!
      --
      Paul G
      Software engineer.


      "Mark Rae [MVP]" wrote:
      "Paul" <Paul@discussio ns.microsoft.co mwrote in message
      news:46974E8D-3181-43A4-894D-14D6A16FF5ED@mi crosoft.com...
      >
      Hi I have a webpage that is for data input and has a large number of
      controls
      on it. In the middle of the page there are 2 dropdown boxes main,and sub.
      when the page first loads only a is visible. If a user selects an item
      from
      the main dropdown I reload the page and make the second dropdown visible
      with
      sub items from the selection in the main dropdown. When this happens the
      user must scroll down to the middle of the page and I was wondering if
      there
      is a way to give focus on the second dropdown, not every time the page
      loads
      but only when a selection is made in the main dropdown.
      >
      // at the end of the code-behind event
      MySecondDropDow nList.Focus();
      >
      >
      --
      Mark Rae
      ASP.NET MVP

      >
      >

      Comment

      Working...