Quest regarding ajax jquery design
Hi,
I am having trouble figuring the best was to design a piece of ajax functionality.
I have a php page with a list of users. Each row has an actions button, when the button is clicked it calls the server to get the state and creates a row of links (follow and activate for instance).
If you click on a link labeled activate it makes an ajax call to change the state of the user's activate field. The button should now be replaced with a deactivate activate button.
I have figured out a few ways to do this but none seamed very clean or degradable. Is there a best-practices approach to solve this issue or has anyone done this before?
All suggestions are welcome.
Thanks,
Ian