J
James Goodman
I have a listbox named sub1 on an asp page. I need to fill this list with
values from a table. These are selected based upon the selection of a
value/s in another listbox.
It was suggested that I use a hidden iframe on my main page, & carry out the
processing inside the frame, using jscript.
If I open the page in a browser, & make a selection in the first listbox
(named main), the data in the frame appears to be processed correctly, the
following jscript is returned to the browser (in the iframe):
<script language="JavaScript" type="text/javascript">
var objElement = window.parent.document.getElementById("sub1");
objElement[objElement.length] = new Option(Jon, 1);
objElement[objElement.length] = new Option(James, 2);
objElement[objElement.length] = new Option(Audit, 13);
</script>
To me this looks pretty much correct as no errors are generated (although I
do not know jscript).
So my question is, how do I take the next step; how do I get these correctly
attained values into my listbox?
values from a table. These are selected based upon the selection of a
value/s in another listbox.
It was suggested that I use a hidden iframe on my main page, & carry out the
processing inside the frame, using jscript.
If I open the page in a browser, & make a selection in the first listbox
(named main), the data in the frame appears to be processed correctly, the
following jscript is returned to the browser (in the iframe):
<script language="JavaScript" type="text/javascript">
var objElement = window.parent.document.getElementById("sub1");
objElement[objElement.length] = new Option(Jon, 1);
objElement[objElement.length] = new Option(James, 2);
objElement[objElement.length] = new Option(Audit, 13);
</script>
To me this looks pretty much correct as no errors are generated (although I
do not know jscript).
So my question is, how do I take the next step; how do I get these correctly
attained values into my listbox?