Menu

#5 Select List formating via Multi-dimensional 'content' array

open
nobody
5
2005-05-29
2005-05-29
Anonymous
No

I think it would be great if the content array (apart
from being sourced through HTTPrequest) could also be
multi dimensional.

.. I'm not a javascript coder at all so the only way I
know to show this is ...

content[0][name] = 'John Doe'
content[0][address] = 'John@someplace.com'
content[0][catagory] = 'friends'
content[1][name] = 'Jane Doe'
content[1][address] = 'doe.jane@someplace.com'
content[1][catagory] = 'coworker'

.. but you should get the idea.

this could allow features like
- formatting the displayed list (names to the left,
addresses to the right)
- colorizing by array field (ie the catagory value
might not be search or displayed as text but all
'friends' in the displayed list could be have colored
text green, coworkers blue, family red etc.)

While your excellent sample rotates around an email
input field, my first use of WICK would be for data
input of adresses (well the town/state/zip). Matching
a suburb or town to a list as it is typed and
displaying in the listing matching town names as well
as state and zip/postcode. You can see how a nicely
fomatted <div> tag like you can see on Google suggest
would work nicely.

Discussion


Log in to post a comment.