add said the following on 10/30/2005 9:43 PM:
> Can someone explain how this works? Thanks!
>
> ProcessData( DataArray )
That's a syntax error. It should be:
function ProcessData( DataArray)
Or:
myVar = ProcessDate( DataArray)
> {
>
> TheData = DataArray || [];
It checks to see if DataArray is an array. If it is, it sets TheData =
to that array. If not, it sets TheData to an empty array.

Signature
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly