Joelito
07-31-2007, 03:11 PM
Hi...
I have in my escenario a ComboBox, Button and TextArea with HTML enable.
I know this:
1. Detect comboBox change event.
2. Detect Button click event.
My problem is that I need to load some html files upon combobox index:
function Combo_onChange(evento) {
nIndex = evento.target.selectedIndex;
}
function Button_onClick(evento) {
if (nIndex >= 1) {
var dat:String = Grupos_xml.firstChild.childNodes[nIndex-1].firstChild.nodeValue;
trace(dat); // Displays the HTML file name
}
}
Now "dat" has the html file that I need to load in my TextArea...that's my problem...any ideas how to load it up?
I have in my escenario a ComboBox, Button and TextArea with HTML enable.
I know this:
1. Detect comboBox change event.
2. Detect Button click event.
My problem is that I need to load some html files upon combobox index:
function Combo_onChange(evento) {
nIndex = evento.target.selectedIndex;
}
function Button_onClick(evento) {
if (nIndex >= 1) {
var dat:String = Grupos_xml.firstChild.childNodes[nIndex-1].firstChild.nodeValue;
trace(dat); // Displays the HTML file name
}
}
Now "dat" has the html file that I need to load in my TextArea...that's my problem...any ideas how to load it up?