mmmm, your post is interesting.
FYI:
1..To get the most efficient help from a forum you should post problematic code only.
2..If your problem is
JS place it in the
JS area
3..You say:
;;;reorganized code - easier to read
If you are looking for somebody to reorganize, you ask to much and I doubt it will happen. This is an area for troubleshooting SPECIFIC problems...
;;;How do you make the dropdown go to the javascript to write the address of the url to be opened
Place an event inside the select tag calling a function:
<select ... onChange="someName();">
This calls a function:
function someName()
{
//this line overrides the action property inside the <form> tag
formName.action = 'pageName.asp?id=someValue';
//submits the form
formName.submit();
}
;;;what's wrong (recycled code) with the javascript
This is not the
JS forum. You want
JS gurus go there.
IMO:
Get rid of all thos querystrings, use hidden form fields, post your values
;;;I forgot to add that the url has to be like this on the javascript
It doesnt have to be. I would use method="post" in your <form> tag and post hidden and or visible values to your destination page.
Are these keywords user defined? If so and you intend passing them in the URL you are going to have to validate and probably URLEncode some values - can see all sorts of potential problems with your page design.
Wind is your friend
Matt