jefargrafx
Instructor
I have some javascript that evaluate the id of objects in an html page by using getElementById in jscript.
I'd like to convert this script to work in flash, however, flash doesn't have a compareable handler that will report all the odjects values? _root.form.textfield.??????
does it?
if it does, and I'm just forgetting something, please let me know.
below is the jscript?
thanks
function writeit (text, id) {
if (document.getElementById) {
x = document.getElementById(id);
if (x != null) {
x.innerHTML = text;
}
} else if (document.all) {
x = document.all[id];
x.innerHTML = text;
} else if (document.layers) {
x = document.layers[id];
x.document.open();
x.document.write(text);
x.document.close();
}
}
jef
I'd like to convert this script to work in flash, however, flash doesn't have a compareable handler that will report all the odjects values? _root.form.textfield.??????
does it?
if it does, and I'm just forgetting something, please let me know.
below is the jscript?
thanks
function writeit (text, id) {
if (document.getElementById) {
x = document.getElementById(id);
if (x != null) {
x.innerHTML = text;
}
} else if (document.all) {
x = document.all[id];
x.innerHTML = text;
} else if (document.layers) {
x = document.layers[id];
x.document.open();
x.document.write(text);
x.document.close();
}
}
jef