Advanced HTML Editor 2 Support Product Page
This topic was archived
Unable to make changes/updates to form content
Reported 01 May 2005 00:37:11
1
has this problem
01 May 2005 00:37:11 Justin B posted:
Hi Everyone,I have the html editor on a page which is used to create html content and insert it into a database without any problem.
On another page, the content is put back into the html editor so it can be edited and saved, but the changed content just will not save.
This is not a database problem. Everything is being inserted no problem at all.
The problem is simply that any changes made in the editor are not available when you request.form() on the next page, which only sees the old content which was taken out of the DB and put into the editor.
As ridiculous that this may sound, the only way to save the changes is to click the <> button to show the html code, then click the <> button again to switch back to regular display, and only then submit the form to be saved successfully.
This is crazy. Does anyone have a solution or workaround? It's as if the changes being made to the form are not actually in the form unles you click the <> button a couple of times.
Thanks.
Replies
Replied 01 May 2005 18:00:54
01 May 2005 18:00:54 Leonard Louwe Kooijmans replied:
The problem is the editor tries to copy the data from the editor back to the form on the submit action. However somtimes (or almost everytime) this is too late and the actual data is allready submitted. I don't know how actually the event model works in this respect
What you can do is invoke the copy back function on submit, but you'll have to control the submit action by means of javascript. So don't use an image button or a default submit button but call use an onclick action.
I've outlined this solution on this bug report :
www.dmxzone.com/forum/topic.asp?TOPIC_ID=31404&FORUM_ID=1684&CAT_ID=660&NewsId=6999&Topic_Title=Advanced+HTML+Editor+build+2%2E0%2E3+bug&Forum_Title=Bugs
Good luck
-------------------------------------------------------------------------
80% of the requirements take 20% of the time to develop...
What you can do is invoke the copy back function on submit, but you'll have to control the submit action by means of javascript. So don't use an image button or a default submit button but call use an onclick action.
I've outlined this solution on this bug report :
www.dmxzone.com/forum/topic.asp?TOPIC_ID=31404&FORUM_ID=1684&CAT_ID=660&NewsId=6999&Topic_Title=Advanced+HTML+Editor+build+2%2E0%2E3+bug&Forum_Title=Bugs
Good luck
-------------------------------------------------------------------------
80% of the requirements take 20% of the time to develop...