turfbult
Apr 21st, 2001, 05:40 AM
Hello,
I have 2 pages - "pageone" and "pagetwo". On "pageone" I have 2
dropdown menus - "products" and "selected". The "products" dropdown
is filled with 50 different products. The user can click on any one of
these products, which is then moved/copied to the "selected" dropdown.
Once the user has selected all the products he wants - ie. the "selected"
dropdown is filled, he then submits(submit button) the page which then
posts/opens "pagetwo". In "pagetwo" I want to run some asp script to
retrieve each and every item in the dropdown "selected".
I know HOW MANY selections there are, but I cannot seem to retrieve it
I tried this....
''prdctr is the count of how many items there are in the dropdown!!
for index = 1 to prdctr
response.write request.form("selected")(index)
next
....this does not work as it only sees that ONE item is selected - which
is actually true, only ONE item is selected at a time!! I tried changing
the "selected" dropdown property to "MULTIPLE" and size="10", which then works, but
as soon as the user selects more than 10 items and a scrollbar appears I
get some "IE Internal error".
Please anyone, how can I "read" thru the "selected" dropdown and
response.write each and every item in that dropdown - selected or not!!
Thanks,
T
I have 2 pages - "pageone" and "pagetwo". On "pageone" I have 2
dropdown menus - "products" and "selected". The "products" dropdown
is filled with 50 different products. The user can click on any one of
these products, which is then moved/copied to the "selected" dropdown.
Once the user has selected all the products he wants - ie. the "selected"
dropdown is filled, he then submits(submit button) the page which then
posts/opens "pagetwo". In "pagetwo" I want to run some asp script to
retrieve each and every item in the dropdown "selected".
I know HOW MANY selections there are, but I cannot seem to retrieve it
I tried this....
''prdctr is the count of how many items there are in the dropdown!!
for index = 1 to prdctr
response.write request.form("selected")(index)
next
....this does not work as it only sees that ONE item is selected - which
is actually true, only ONE item is selected at a time!! I tried changing
the "selected" dropdown property to "MULTIPLE" and size="10", which then works, but
as soon as the user selects more than 10 items and a scrollbar appears I
get some "IE Internal error".
Please anyone, how can I "read" thru the "selected" dropdown and
response.write each and every item in that dropdown - selected or not!!
Thanks,
T