473,388 Members | 1,499 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,388 software developers and data experts.

How to: Select from Dynamic drop down menus using script

Hello:

I was hoping to gain some insight, a point in the right direction if you will...

We use an .asp web page to select from a couple of dynamic drop down menus then enter a number, and press go to query the sql db.

Is it possible to use a javascript to open the web page, and the select the options I want from a dynamic dropdown menus?

Also selecting the option I want from the available checkboxes,
then "clicking" go.

Is this possible so I don't have to open the web page every time and select the options I want?
Aug 20 '07 #1
2 2296
r035198x
13,262 8TB
Hello:

I was hoping to gain some insight, a point in the right direction if you will...

We use an .asp web page to select from a couple of dynamic drop down menus then enter a number, and press go to query the sql db.

Is it possible to use a javascript to open the web page, and the select the options I want from a dynamic dropdown menus?

Also selecting the option I want from the available checkboxes,
then "clicking" go.

Is this possible so I don't have to open the web page every time and select the options I want?
Java != Javascript

Moved to Javascript forum.
Aug 20 '07 #2
acoder
16,027 Expert Mod 8TB
Hello:

I was hoping to gain some insight, a point in the right direction if you will...

We use an .asp web page to select from a couple of dynamic drop down menus then enter a number, and press go to query the sql db.

Is it possible to use a javascript to open the web page, and the select the options I want from a dynamic dropdown menus?

Also selecting the option I want from the available checkboxes,
then "clicking" go.

Is this possible so I don't have to open the web page every time and select the options I want?
Welcome to TSDN!

You could use window.open to open a new window pointing to the URL of the page in question. Keep a handle to the window so that you can use it to update the page.

You can also set the values of elements dynamically and use the click() method on the button.
Expand|Select|Wrap|Line Numbers
  1. var newwin = window.open('...',...);
  2. newwin.document.getElementById('selObj').value='blah';
  3. new.document.getElementById('btnObj').click();
Aug 20 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Nanos | last post by:
For the form I need to create drop down select with say five different options. There also should be possibility to enter own option if one is not listed. How can I do it.? Thank you in advance...
3
by: KK | last post by:
Drop-down menus are the hottest thing since Wonder Bread but . . . 1. Alot of people put them in the they-look-nice-but-you-cant-code-them-right-so-they-always-look-messed-up category (a la...
1
by: Colvin | last post by:
I'm trying to create a pair of dynamic drop-down menus. I'm new to Javascript, so I tried to find a simple example on the web. I found a good example at...
7
by: lawrence | last post by:
Can I do something like the following to get a browser to redirect to a new url every time someone picks a new value in a select box? function changeUrl() { var redirect; redirect =...
6
by: Bonge Boo! | last post by:
This has got to be obvious, but I can't make it work. I have a form called with 3 pull down menus. They are linked to a database which generates the values for the <SELECT? Pull-downs. Lets...
3
by: scaredemz | last post by:
hi, so i'm creating a dynamic drop-down menu. the menu and the text show up fine in IE but only the drop-down shows in Firefox without the menu text. Below is the fxn code. help pls. function...
14
by: maya | last post by:
hi, I need help with a dynamic nav menu, http://www.mayacove.com/design/nav/nav.html it looks like I want it in IE 7, but in FF and IE 6 it's totally messed up.. in FF the main-nav section...
6
by: phpnewbie26 | last post by:
My current form has one multiple select drop down menu as well as few other drop down menus that are single select. Originally I had it so that the multiple select menu was first, but this created...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.