Quote:
Originally Posted by rpeterson84
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.
- var newwin = window.open('...',...);
-
newwin.document.getElementById('selObj').value='blah';
-
new.document.getElementById('btnObj').click();