JasonO Posted December 13, 2008 Share Posted December 13, 2008 Hi All, I want to make a noticeboard for an internal staff system. The system is viewable by all staff members, but members of management (I have sessions setup to check these, so isn't the problem) should be able to edit the news and items on this noticeboard etc. The method I planned to do this was that a member of management can click a note, and be able to edit it where by the note changes into some text box. If it's a news item then clicking a button allows a new news row to be added for the news above the others, which would also be a text box. The data would be stored in MySQL. I'm not asking anyone to do this for me, but to start me off in a direction to go so I can do this thing via AJAX? I'm not that familiar with me, but I do think there may be a similar system to this I can easily intergrate into my system. Your help is much appreciated Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/ Share on other sites More sharing options...
laPistola Posted December 14, 2008 Share Posted December 14, 2008 the ajax forum http://www.phpfreaks.com/forums/index.php/board,51.0.html Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/#findComment-714888 Share on other sites More sharing options...
JasonO Posted December 14, 2008 Author Share Posted December 14, 2008 That would explain the lack of decent results when searching the PHP Forum for my question... Sorry, could a Moderator move this to the correct section please ? Ignore my stupidity! Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/#findComment-714899 Share on other sites More sharing options...
xtopolis Posted December 14, 2008 Share Posted December 14, 2008 The term is called: "inline editing" http://www.google.com/search?q=ajax+inline+editing&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a There are a few different types out there. The key concept is: 1)Know what element you start with, and it's contents/value 2)Know what it should become when clicked (textbox/input/other?) 3)Saving the new values 4)Restoring the element back to it's step1 form with the next content. Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/#findComment-715401 Share on other sites More sharing options...
JasonO Posted December 15, 2008 Author Share Posted December 15, 2008 Thanks! I used this site as a solution which works great, and is easy to implement: http://www.yvoschaap.com/index.php/weblog/ajax_inline_instant_update_text_20 The problem I have now is having a delete button (a small X of some kind) in the corner of each post to delete it from the database. New to AJAX and such, so isn't easy finding anything. Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/#findComment-715553 Share on other sites More sharing options...
xtopolis Posted December 15, 2008 Share Posted December 15, 2008 Explain your problem more thoroughly.. You have a delete button?... Link to comment https://forums.phpfreaks.com/topic/136873-click-and-edit-ajax-solution/#findComment-715578 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.