Friday, September 05, 2008 at 8:08 AM
If you have a listbox or combobox that displays text strings, consider using methods such as
appendString()
and removeString()
instead of appending item elements. Read the 5.5 release notes to see the available methods and examples of their use. Here is an example that fills a listbox named
statesListbox
:var states = ['Alabama', 'Alaska', ... ];Have a tip you'd like to share? Send it to gd-developer AT google DOT com. To see all tips, choose the Tips label.
for (var i = 0; i < states.length; ++i) {
statesListbox.appendString(states[i]);
}
// We are not allowed to ship to California.
statesListbox.removeString('California');
1 comment:
its nice code...thanks.. google cayo...
by
globalwebroom.com
Post a Comment