djorlett
12-22-2003, 04:53 PM
Greetings all,
This is my first post so please forgive any madness.
I have a question about generated select boxes
here is what I am doing
I have an Iframe that I generate on a selection of a checkbox that needs a database query so I have a php database interface object that is static page. From a hidden input I populate the name of the object, and the select query for the database.
I have a set of php code that generates a select box based on the return from the query. I set a windows interval to check when the select box has been created
When the select object has been created I remove it from the DOM and pass it to a function on the parent window
the parent function copies the select object and its options, removes the iframe, and populates the Dom with this new select object at a specified location
my problem is the first time the select object shows up it ignores the size attribute. I want it to be a size 4 select with multiple select, but its a size one dropdown
when I click on another checkbox however to generate another iframe and selectbox in turn, the previous select object is converted to the correct size.
I am curious as to why it does not render the object correctly the first time, I have alerted the size attribute prior to the appendChild call and it comes back with 4, as well all the other attributes are correct.
*shrug* any ideas?
This is my first post so please forgive any madness.
I have a question about generated select boxes
here is what I am doing
I have an Iframe that I generate on a selection of a checkbox that needs a database query so I have a php database interface object that is static page. From a hidden input I populate the name of the object, and the select query for the database.
I have a set of php code that generates a select box based on the return from the query. I set a windows interval to check when the select box has been created
When the select object has been created I remove it from the DOM and pass it to a function on the parent window
the parent function copies the select object and its options, removes the iframe, and populates the Dom with this new select object at a specified location
my problem is the first time the select object shows up it ignores the size attribute. I want it to be a size 4 select with multiple select, but its a size one dropdown
when I click on another checkbox however to generate another iframe and selectbox in turn, the previous select object is converted to the correct size.
I am curious as to why it does not render the object correctly the first time, I have alerted the size attribute prior to the appendChild call and it comes back with 4, as well all the other attributes are correct.
*shrug* any ideas?