﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebTextEditor - WebTextEditor - Why is editor modifying my script?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor---Why-is-editor-modifying-my-script/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebTextEditor - Why is editor modifying my script?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor---Why-is-editor-modifying-my-script/</link><pubDate>Fri, 02 Sep 2011 05:25:24 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTextEditor</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;&lt;p&gt;No, the hotfix already fixed that. It works in here. Have you change your code into the correct format?&lt;br /&gt;&amp;lt;a class="xxxxx" onclick="javascript:doSomething();" return false" href="#"&amp;gt;hello&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;changed into &lt;/p&gt;
&lt;p&gt;&amp;lt;a class="xxxxx" onclick="javascript:doSomething(); return false" href="#"&amp;gt;hello&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;Perhaps, you need also to apply the framework. Here, I reattached both hotfixes for you.&lt;/p&gt;
&lt;p&gt;About the doctype, I mean the issue would not happen in XHTML doctype.&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor - Why is editor modifying my script?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor---Why-is-editor-modifying-my-script/</link><pubDate>Thu, 01 Sep 2011 18:32:33 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebTextEditor</category><description>&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt"&gt;Hello Handy, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt"&gt;Thanks for the reply, but the fix has not quite solved the problem.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'lucida sans unicode'; font-size: 10pt"&gt;After installing the hot fix,&amp;nbsp; WebTextEditor&amp;nbsp;now adds only one occurrence of function onclick() {}&amp;nbsp;around each function on the page, regardless of how many times you switch between design and html views.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;In other words, WebtTextEditor still changes &lt;strong&gt;&lt;span style="font-family: 'lucida sans unicode'"&gt;onclick="doSomething();"&lt;/span&gt;&lt;/strong&gt; to &lt;strong&gt;&lt;span style="font-family: 'lucida sans unicode'"&gt;onclick="&lt;span style="color: red"&gt;function onclick() {&lt;/span&gt;doSomething();&lt;span style="color: red"&gt;}&lt;/span&gt;"&lt;/span&gt;&lt;/strong&gt;, especially in IE. &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;The part in red should not be added to the function, not even once, as it causes the function to stop working. Please check the fix again. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="undefined" style="font-family: 'lucida sans unicode'; font-size: 10pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: fr; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;In you post, you said “&lt;/span&gt;&lt;i style="mso-bidi-font-style: normal"&gt;&lt;span lang="undefined" style="font-family: arial; color: #3f3f3f; font-size: 9pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: fr; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;The issue only happens on IE in HTML doctype&lt;/span&gt;&lt;/i&gt;&lt;span lang="undefined" style="font-family: arial; color: #3f3f3f; font-size: 9pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: fr; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;”.&lt;span style="mso-spacerun: yes"&gt;  &lt;/span&gt;Am I supposed to use a different &lt;span style="mso-spacerun: yes"&gt; &lt;/span&gt;HTML doctype than &amp;lt;!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”&amp;gt; ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="undefined" style="font-family: arial; color: #3f3f3f; font-size: 9pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: fr; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;Regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="undefined" style="font-family: arial; color: #3f3f3f; font-size: 9pt; mso-fareast-font-family: 'times new roman'; mso-ansi-language: fr; mso-fareast-language: en-us; mso-bidi-language: ar-sa"&gt;Jean&lt;/span&gt;&lt;/p&gt;</description></item><item><title>WebTextEditor - Why is editor modifying my script?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor---Why-is-editor-modifying-my-script/</link><pubDate>Thu, 01 Sep 2011 03:30:33 GMT</pubDate><dc:creator>handy@intersoftpt.com</dc:creator><category>WebTextEditor</category><description>&lt;p&gt;Hello Jean,&lt;/p&gt;&lt;p&gt;I can replicate the issue in here. The issue only happens on IE in HTML doctype. Also, your current script is not well-formatted. It should be:&lt;/p&gt;
&lt;p&gt;&amp;lt;a class="xxxxx" onclick="javascript:doSomething(); return false" href="#"&amp;gt;hello&amp;lt;/a&amp;gt;&lt;/p&gt;
&lt;p&gt;Our developer team has fixed the issue. Please apply the attached hotfix. It should fix the issue.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Handy&lt;/p&gt;</description></item><item><title>WebTextEditor - Why is editor modifying my script?</title><link>http://www.intersoftsolutions.com/Community/WebTextEditor/WebTextEditor---Why-is-editor-modifying-my-script/</link><pubDate>Tue, 30 Aug 2011 05:51:35 GMT</pubDate><dc:creator>JNguimb</dc:creator><category>WebTextEditor</category><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have &lt;strong&gt;&amp;lt;a class="xxxxx" href="#" onclick="javascript:doSomething()"; return false"&amp;gt;hello&amp;lt;/a&amp;gt;&lt;/strong&gt; in a webgrid cell, originating from sql server.  This script works as intended when exposed on the webpage.&lt;/p&gt;
&lt;p&gt;But when this script is inserted in WebTextEditor, which is I have on the same page as the grid and which I use (in multiple sections format) to edit the content of the grid row, WebTextEditor turns the script into: &lt;strong&gt;&amp;lt;a class="xxxxx" onclick="function onclick() { function onclick() { function onclick() { doSomething(); return false; } } }" href="#"&amp;gt;hello&amp;lt;/a&amp;gt;&lt;/strong&gt;.  During update, the script is returned to the grid and sql in this modified format, which now does not work.&lt;/p&gt;
&lt;p&gt;In fact, an additional "function onclick() {}" is added around the original function each time you switch between Design and HTML views.  In other word, WebTextEditor adds 10 "function onclick() {}" around the original doSomething() if you switch 10 times between Design and HTML views, causing the function to stop working when saved back to the grid/database.  Why is this happening?&lt;br /&gt;&lt;/p&gt;WebTexEditor seems to behave as described above with most of this type of scripts, at least in my settings.&lt;br /&gt;&lt;br /&gt;Am I doing or not something here that invokes this behavior in the editor? if not, how do I ensure that things that I do not intentionally modify are returned the grid and server from WebEditor exactly as they came out ?

&lt;p&gt;Regards&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Jean&lt;br /&gt;&lt;/p&gt;
</description></item></channel></rss>