Tutorials Home
What's New
Top Rated
Submit
myTutes
Random!
Dynamic charts
Author: Sas Jacobs
| Website: http://www.sasjacobs.com |
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: 7.80 Votes: 41
Hits: 2673
|
| » Author |
|
Applications Developer Marconi Australia
|
| » Download |
|
Download the files used in this tutorial.
|
|
Download (158 kb)
|
|
Get conversion and unzipping tools
for PC and Mac here!
|
| » Forums |
|
More help? Search our boards for quick answers!
|
|
Please rate this tutorial, 10 is the top rating, you can also click the
comments link to read/write a review.
|
|
|