Search tutorials
Removing text fields
If the user changes the number of text fields, we must remove the existing
label and value fields before we recreate the new fields.
This is handled by the function removeTextFields, shown below.
function removeTextFields() {
for (var i=0; i < 10; i++) {
if (this["ChartLabel"+i]) {
this["ChartLabel"+i].removeTextField();
}
if (this["ChartValue"+i]) {
this["ChartValue"+i].removeTextField();
}
}
}
This function tests whether the text field exists and if so, removes it.
| » Level Intermediate |
|
Added: 2002-08-05 Rating: 8 Votes: 41 |
| » Author |
| Applications Developer Marconi Australia |
| » Download |
| Download the files used in this tutorial. |
| Download (158 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!