473,598 Members | 3,409 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to: Select from Dynamic drop down menus using script

3 New Member
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 2310
r035198x
13,262 MVP
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 Recognized Expert Moderator MVP
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
2838
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 for any hint, emanuel
3
2953
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 "frames"). Do you think this is true> 2. Some people think they take up too much KB. 3. Some people are worried that people who have javascript turned off wont be able to see them. What percent of web users have javascrips turned off? I thought it was...
1
1603
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 http://javascript.about.com/library/weekly/aa072903a.htm , and I tried to model my problem after that. My attempt can be viewed at http://www.riverhill.org/english/robb/summer_school/dynamic_menus.html (I've removed all of the other html). It's supposed to display a list of middle...
7
47366
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 = document.getElementById('newUrl').value;
6
2397
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 say I have values selected for all three pull down menus. When I change the first "top-level" menu I want to reset both the second and third menus to the "default" state.
3
3041
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 DropDownHelper(menuArray, top, left, height) { var currItem = new String(); var item; var idStr;
14
2249
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 looks fine, but the drop-downs are totally messed up.. in IE6 for some reason the functionality is totally messed up, I get JavaScript errors, I guess that's for JS group....;)
6
7553
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 the problem that when I went to select the other drop down menus, the selections i made on the multiple select one would clear. Then I had tried putting the multiple select menu last so that the selections wouldn't clear but then after clicking the...
0
7991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
7902
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8395
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8398
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8265
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
5850
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
3898
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2412
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1504
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.