Print Page | Close Window

mod req : anyone can do? ajax inline post edit ???

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25199
Printed Date: 28 March 2026 at 9:01am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: mod req : anyone can do? ajax inline post edit ???
Posted By: miladanimator
Subject: mod req : anyone can do? ajax inline post edit ???
Date Posted: 22 January 2008 at 12:23pm
anyone can do this ?
ajax inline post edit ???

when a user click on "edit post" link , he/she can edit the post inline ...

example : http://www.yvoschaap.com/instantedit/ - http://www.yvoschaap.com/instantedit/



Replies:
Posted By: WebWiz-Bruce
Date Posted: 22 January 2008 at 12:52pm
This type of thing doesn't require AJAX, you can do this quite simply by writing a little JavaScript function that enables the browsers RTE for a particular area.

For IE:-

document.getElementById('AreaYouWantToEdit').body.contentEditable = true;

For other browsers:-

document.getElementById('AreaYouWantToEdit').editor.designMode = 'on';

This would certainly be the simplest way and saves writing lots of extra unnecessary AJAX code.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: hotice08
Date Posted: 17 April 2008 at 3:21am
And Bruce can you let us know where do u think is the best place for me to put this script I am using 9.05. Sorry for asking a dumb question



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net