Tip: Use the string-based listbox methods

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', ... ];

for (var i = 0; i < states.length; ++i) {

// We are not allowed to ship to California.
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.

1 comment:

OSCorp said...

its nice code...thanks.. google cayo...