K
Kevin
Hi there,
My HTML calls two javascript functions:
1. paint a webpage with textboxes and drop down menus;
2. populate the webpage with the XML DOM values.
The paint function, #1, just consists of two functions: drawTextBox
and drawDropDown menu.
Inside of these functions I just call document.write(input type=select
OR type= text ...).
I need to add onclick functionality to the drop-down menus so that
when they're clicked, they access a particular URL that the XML DOM
specifies.
My problem is that I don't know how to add this onclick functionality.
If I try to add it in the paint function, I can't because it doesn't
yet have access to the XML DOM, which is called in function #2. If I
try to add the onclick functionality using dropdown.onclick = function
( window.location=...), I can't get that to work either.
Please give me advice.
thank you,
Kevin
My HTML calls two javascript functions:
1. paint a webpage with textboxes and drop down menus;
2. populate the webpage with the XML DOM values.
The paint function, #1, just consists of two functions: drawTextBox
and drawDropDown menu.
Inside of these functions I just call document.write(input type=select
OR type= text ...).
I need to add onclick functionality to the drop-down menus so that
when they're clicked, they access a particular URL that the XML DOM
specifies.
My problem is that I don't know how to add this onclick functionality.
If I try to add it in the paint function, I can't because it doesn't
yet have access to the XML DOM, which is called in function #2. If I
try to add the onclick functionality using dropdown.onclick = function
( window.location=...), I can't get that to work either.
Please give me advice.
thank you,
Kevin