Advanced HTML Editor 2 Support Product Page

Insert & Update Not Working Correctly

Reported 30 Aug 2005 18:42:28
1
has this problem
30 Aug 2005 18:42:28 Ben Clark posted:
When my page updates a record in the database, the new text in the editor is not updated unless I press buttons on the editor itself (like switch to HTML view). I have tested and re-tested, but get the same error. I have tested using Macromedia's Update Record server behavior and tested using an updateable recordset. It is not the update where the problem lies. I added a button on the page which displays the content of the editor in a Javascript alert, and it shows that the new text is not seen until I press buttons on the editor or click in and out of the editor several times.

Is there a fix for this?

Replies

Replied 30 Aug 2005 22:13:13
30 Aug 2005 22:13:13 George Petrov replied:
Hi Ben,

Are you using the latest version available at www.dmxzone.com/ShowDetail.asp?NewsId=6999

Also what browser are you using?

Did you choose an initial value for your editor of the recordset with the right database field?

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 31 Aug 2005 14:41:30
31 Aug 2005 14:41:30 Ben Clark replied:
I have the latest version of the Advanced HTML Editor 2 and I am using IE6 w/ SP2. The initial value of the database field is correct. You can see an example of this problem at www.leifferassociates.com/dynamic/jobs/editJob.asp?JobID=13. When the page finishes loading, I can type something in the HTML editor and press the "Testing Button" and the new text is not there. The same is true with submitting the update.
Replied 31 Aug 2005 17:06:36
31 Aug 2005 17:06:36 George Petrov replied:
Hi Ben,

I checked your site and the version on your site is 2.03

So it isn't the latest version (it is 2.04.2) . You can see the the ScritpLibrary/advHTMLEdit.js

Please download the latest, remove first the previous completely and then install the new version.
Make a small change to your page and save it - you should see that the files are updated and upload the new ones.

Greetings,
george

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 01 Sep 2005 00:18:05
01 Sep 2005 00:18:05 Ben Clark replied:
I have updated the files. I removed all the existing files and references before updating. I am having the same problem. Please, take another look at the example page in the previous post. It is not updating unless I click a button on the editor or click in and out of the editor several times.
Replied 01 Sep 2005 00:22:24
01 Sep 2005 00:22:24 Ben Clark replied:
I did test it in FireFox and it works fine... it is just in IE 6 that I am having the problem.
Replied 02 Sep 2005 23:10:16
02 Sep 2005 23:10:16 George Petrov replied:
do you have a live url where I can test?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 03 Sep 2005 00:14:53
03 Sep 2005 00:14:53 Ben Clark replied:
Test this at :

www.leifferassociates.com/dynamic/jobs/editJob.asp?JobID=14

Works fine with firefox... problem is with IE 6
Replied 04 Sep 2005 14:18:25
04 Sep 2005 14:18:25 George Petrov replied:
Hi Ben,

This was a bit difficult to track - after a few long hours I discovered that you are not using a standard submit button but form.submit() to submit your form...

Well this function indeed submits your form but it does not execute any scripts that are defined on the onsubmit handler.

So your form validation as well the copy of the html contents to the hidden text field that is used to update your database do not get executed this way...

So the best solution for you is the make the submit button real type="submit" and get rid of the form.submit() function on it.

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 05 Sep 2005 08:26:06
05 Sep 2005 08:26:06 Leonard Louwe Kooijmans replied:
...or just before you call the form.submit() action call "dmx_f13('myeditorfieldname')", eg:

onclick="dmx_f13('fldContent');form.submit();"

I use this myself, since I require client-side form validation on other fields then the editor, which take place just before the submit

-------------------------------------------------------------------------
80% of the requirements take 20% of the time to develop...
Replied 06 Sep 2005 16:57:51
06 Sep 2005 16:57:51 Ben Clark replied:
Thanks. That did fix the problem. Calling the dmx_f13('fldContent'); did fix the problem when using document.form.submit().
Replied 04 Oct 2008 13:46:23
04 Oct 2008 13:46:23 George Petrov replied:
Hi Ben,

Sorry starting ver 2.07 we have another js compressor so dmx_f13 is called as it is originally:

dmxedit_filterOutput

It has the same parameter.
Sorry for the inconvenience

Greetings,
George


--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 17 Jan 2009 21:54:13
17 Jan 2009 21:54:13 Ben Clark replied:
Seems that it changed again... it is now back to "dmxedit_getHTML"
Replied 25 Mar 2009 12:23:40
25 Mar 2009 12:23:40 Peter Deré replied:
dmxedit_filterOutput works fine here atm (AHE v. 2.0.10)
Replied 19 Jan 2010 23:30:33
19 Jan 2010 23:30:33 Mark Drelinger replied:
Thank you for posting this fix

.........Seems that it changed again... it is now back to "dmxedit_getHTML"

I had the same issue and that fixed it.

Reply to this topic