From: SourceForge.net <no...@so...> - 2010-06-09 03:45:47
|
Bugs item #1886808, was opened at 2008-02-05 08:53 Message generated for change (Settings changed) made by afm_44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=1886808&group_id=151897 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open >Resolution: Accepted Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Textareas messing response with file uploads Initial Comment: I've found a bug in Anthem.js at line 74. The problem as I see is that you change all </textarea> for </anthemarea> when rendering if you're using IOFrame to avoid these markups messing with the response frame. The problem is you missed to put the "g" (global) option in the replace RegEx when replacing back all the </anthemarea> to </textarea> again. This behavior only occurs when you're sending a file and there is more than one <textarea></textarea> pair in the response. To fix the bug just change the RegEx in the replace call with a "g" option to allow it to change all the occurrences... Line 74 - Old code: var response = { responseText: doc.getElementById("response").value.replace(/<\/anthemarea>/, "</textarea>") }; Line 74 - New code: var response = { responseText: doc.getElementById("response").value.replace(/<\/anthemarea>/g, "</textarea>") }; --------------------------------------- Joan Vilariño joa...@gm... ---------------------------------------------------------------------- Comment By: Leniel Macaferi (leniel) Date: 2009-11-05 23:09 Message: Hi, Indeed, this is a problem. I've download the last version of Anthem's source code (1.5.2) and implemented the change described by Joan Vilariño. I then recompiled the source code to get a new Anthem.dll. I replaced the old Anthem.dll with this new one on my project Libs folder. It did the trick! Thanks Joan. Leniel Macaferi http://www.leniel.net/ ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=782464&aid=1886808&group_id=151897 |