Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Editing name after initial edit.

Hi everybody,

All works great, however I would like to know if anybody has any thoughts on taking this further. For example, once we have submitted the name, edited it, then saved it, I would like to then re-edit the name.

So just to clarify, we follow this process:

Submit name Edit name Save Name

Then on this saved name I would like to: Edit name (again) Save Name

Would this be possible with javaScript?

Or would this require something like AJAX to listen for a new request? I haven't studied this yet, so if this would be the correct method, would somebody be able to point me to some documentation/courses that might help me achieve this?

Many thanks in advance for your thoughts