I wish to implement a clean solution for a page with Ajax
requirements.

Given that the user provides a Sample List of Names and a Count
reflecting how many actual names there really are for something...

Here are some needs of a page:
- Let user add a name and store name added immediately
- Show sample list given so far
- Hides the ability to Add Names if Sample List equals Count
- All of this and more using Ajax

Some options are available here to meet these requirements.

- For showing the list and hiding Add Names when list size = Count,
should one:
Store the Sample List into something globally accessible in the page
OR request the list each time something about the list is needed
(size, content)
OR ....
What is the simplest and cleanest approach?

BTW, the list is requested each time an item is added or removed right
now. It seems easier to debug that way.

Thanks.

Reply via email to