OK. Here goes...
I have a page in IE 6 that has a row with some input boxes and one
SELECT box. Below this row there is a button that onClick, it adds a
new row to the page dynamically. What it does actually is rewrites
those inputs and SELECTS on the page by first putting them in arrays
and then after writing the boxes, it puts them back where they go.
OK? OK.
So this SELECT box is my problem. The string that defines it, is
written from ASP on page load. It works no problem. Until you add a
row to the page. When a user has already chose a option there, and
then clicks ADD, it resets thier SELECT box to the first option, not
what they chose. I cannot figure out how to find thier choice and
keep it selected. The value of the option corresponds to the number
in the DB... but I can't very well look that up from the DB while the
page is running...
<option Value="231">0001</option> <option
Value="605">0002</option>...etc.
I need to somehow, I guess to retrive the selectedIndex from the
SELECT box, but I have been unsuccessful. I have also tried to put
the index value in a hidden box but also unsuccessfully. That is the
only ideas I have had, and they have not worked for me. Can anyone at
least point me in the right direction?
Thanks in advance! 2 1683
Perhaps this link inspires you: http://lgwm.org/ozone/dynatable.htm
--
Elias
"Adam" <sh********@yahoo.com> wrote in message
news:88************************@posting.google.com ... OK. Here goes...
I have a page in IE 6 that has a row with some input boxes and one SELECT box. Below this row there is a button that onClick, it adds a new row to the page dynamically. What it does actually is rewrites those inputs and SELECTS on the page by first putting them in arrays and then after writing the boxes, it puts them back where they go. OK? OK.
So this SELECT box is my problem. The string that defines it, is written from ASP on page load. It works no problem. Until you add a row to the page. When a user has already chose a option there, and then clicks ADD, it resets thier SELECT box to the first option, not what they chose. I cannot figure out how to find thier choice and keep it selected. The value of the option corresponds to the number in the DB... but I can't very well look that up from the DB while the page is running...
<option Value="231">0001</option> <option Value="605">0002</option>...etc.
I need to somehow, I guess to retrive the selectedIndex from the SELECT box, but I have been unsuccessful. I have also tried to put the index value in a hidden box but also unsuccessfully. That is the only ideas I have had, and they have not worked for me. Can anyone at least point me in the right direction?
Thanks in advance!
WOW. Thats all I can say. Thats a really cool example. I think that
will help a lot.
Thanks much!
Adam
"lallous" <la*****@lgwm.org> wrote in message news:<bs***********@ID-161723.news.uni-berlin.de>... Perhaps this link inspires you:
http://lgwm.org/ozone/dynatable.htm
-- Elias "Adam" <sh********@yahoo.com> wrote in message news:88************************@posting.google.com ... OK. Here goes...
I have a page in IE 6 that has a row with some input boxes and one SELECT box. Below this row there is a button that onClick, it adds a new row to the page dynamically. What it does actually is rewrites those inputs and SELECTS on the page by first putting them in arrays and then after writing the boxes, it puts them back where they go. OK? OK.
So this SELECT box is my problem. The string that defines it, is written from ASP on page load. It works no problem. Until you add a row to the page. When a user has already chose a option there, and then clicks ADD, it resets thier SELECT box to the first option, not what they chose. I cannot figure out how to find thier choice and keep it selected. The value of the option corresponds to the number in the DB... but I can't very well look that up from the DB while the page is running...
<option Value="231">0001</option> <option Value="605">0002</option>...etc.
I need to somehow, I guess to retrive the selectedIndex from the SELECT box, but I have been unsuccessful. I have also tried to put the index value in a hidden box but also unsuccessfully. That is the only ideas I have had, and they have not worked for me. Can anyone at least point me in the right direction?
Thanks in advance! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Simon Finn |
last post by:
Hi
I have used ASP code to load data into two select boxes. The code below is
used to move the selected data back and forth between the boxes.
I am having problems retreving the data from the...
|
by: Jeff Thies |
last post by:
I have 10 select boxes, they have select values of 1 to 10 (one of
each value).
I'd like to be able to change one of the select boxes and have the
rest reorder themselves accordingly.
I...
|
by: Dennis M. Marks |
last post by:
I have a problem with the following code. It generates a
<FORM><SELECT><OPTION> list. There is no problem in the generating. The
problem is in the execution as follows.
It works fine in Mac IE...
|
by: headware |
last post by:
I have a <select> control that contains many entries. It allows the
user to multi-select a group of them, click a button, and store the
selected data in a database. Normally they do this starting...
|
by: TJ Walls |
last post by:
Hello All,
Is it possible to create a <select> element with no selected options? I
have tried setting the selectedIndex attribute to -1, but as far as I can
tell this only works for <select...
|
by: Bart van Deenen |
last post by:
Hi all
I have a script where I dynamically create multiple inputs and selects
from a script. The inputs and selects must have an associated onchange
handler.
I have the script working fine on...
|
by: Omar |
last post by:
Hi,
In a JSP I have the next:
....
codigo = "<select name='" + nombre + "'>\n<option selected
value='default'>Escoge</option><option value='todos'>Todos</option>";
if (miRS != null)
while...
|
by: jascraig |
last post by:
Here's my dilemma. I'm working with a frameset with 3 frames
(header,content,control). My control frame contains a select list with
buttons for next and previous. When the next button is pushed...
|
by: Stefan Finzel |
last post by:
Hi
trying to remove one or all elements of select options fails for Pocket
Internet Explorer. Is there a way to do this?
if is_PIE {
// this does not work on Pocket IE
while (opt.length) {...
|
by: DolphinDB |
last post by:
Tired of spending countless mintues downsampling your data? Look no further!
In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: Shællîpôpï 09 |
last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
| | |