jQuery Autocomplete Using XML as Data Source

Update (11/30/2012): added a new demo that only searching the beginning terms of the autocomplete source.

Update: added a new demo for autocomplete for two fields in a form.

Introduction

The following article will describe how to use an XML file as a Data Source for the jQuery Autocomplete plugin.

The jQuery Autocomplete Plugin documentation is lacking on examples, or details, on how to use an XML file as the data source. So this is my attempt to provide a simple example of how to use XML with the Autocomplete Plugin.

The plugin can take an array of strings, so we need to develop code to read the XML file into memory and parse its contents into an array of strings. Once we have an array of strings, we can assign that array to the autocomplete plugin and attach that to a text field in our form. The following will step through that process.

Continue reading

ActionScript: Convert Selected Data from List Component to String (AS3)

Introduction

The following post will describe how to convert data selected from a List component in Flash (AS3) to a String.

After Googling and finding no solution, I decided to create develop my own solution to the problem. There is not a straight-forward way to get the selected data from a List component converted to a String. You’d think there would be a simple function in AS3 that could accomplish this task. If there is such a function, I have been unable to find it in the ActionScript 3.0 Language and Components Reference.

Continue reading