473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.
Jun 27 '08 #1
2 928
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:46**********************************@microsof t.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
MySecondDropDownList.Focus();
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #2
thanks, it worked, did not think it would be that easy!
--
Paul G
Software engineer.
"Mark Rae [MVP]" wrote:
"Paul" <Pa**@discussions.microsoft.comwrote in message
news:46**********************************@microsof t.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
MySecondDropDownList.Focus();
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

162
by: Isaac Grover | last post by:
Hi everyone, Just out of curiosity I recently pointed one of my hand-typed pages at the W3 Validator, and my hand-typed code was just ripped to shreds. Then I pointed some major sites...
27
by: Matt Kruse | last post by:
Since this topic has come up several times in other threads, I thought I'd make a separate thread and gather opinions from (hopefully) a more varied range of newsgroup participants. What are...
4
by: Joseph | last post by:
The idea is to show only one of the <Baby_Div> while hiding all the others. At the moment all I have managed to do is to show each <Baby_Div> in turn as expected, but the problem is that once a...
6
by: Geoff Cox | last post by:
Hello, I wonder if anyone has used prototype? Is is a Javascript framework. I am using prototype-1.3.1.js and have a question but so far have not found many people who know about this work. ...
3
by: Mephistopheles | last post by:
>>"Shapper" <mdmoura*NOSPAM*@gmail.*DELETE2SEND*com> wrote in message >>news >>:%23N6vQmpSFHA.3184@TK2MSFTNGP14.phx.gbl... >> Hi, >> I have a function already but I need to solve one...
9
by: Neo Geshel | last post by:
I have strip-mined, strip-searched, and completely exhausted the Internet (up to the 30th page on Google, with 100 results per page!!), all without finding an answer to my question AS TO WHY IT...
7
by: Ivan Marsh | last post by:
Hey Folks, I'm having a heck of a time wrapping mind around AJAX. Anyone know of a simple, straight-forward example for pulling a simple query from mysql with PHP using AJAX? As I...
1
by: Angus | last post by:
Hello I am a programmer (C++) and know a little JavaScript. I need to learn Ajax for a project and want to buy a good, readable book so I can read on the train etc to get me started. Can...
2
by: Daz | last post by:
Hi everyone. I would like to find a good JavaScript compactor/obfuscator. Obfuscation is not important to me really, but I would like a compactor that understands variables and functions in a...
76
by: lorlarz | last post by:
Crockford's JavaScript, The Good Parts (a book review). This shall perhaps be the world's shortest book review (for one of the world's shortests books). I like Douglas Crockford (because I am a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.