htmlArea

A directory of browser-based WYSIWYG editors

  MAIN
INDEX
SEARCH
POSTS
WHO'S
ONLINE
LOG
IN

Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0:
Invalid source HTML for this operation


The htmlArea 2 & 3 editors have been discontinued.

We've made these forums available as a read-only reference and knowledge-base for people using or developing editors based on htmlArea 2 or 3.

Anyone who is interested in taking over version 2 or 3 is free to do so. All we ask is that you choose a new name that doesn't have "htmlarea" in it to avoid confusion with this site. We'll even give you a link in the directory to make it easier for people to find you. If you are developing or hosting an htmlArea based-editor under a new name, please submit it to our directory.

 


tony_geo
New User

Dec 22, 2004, 7:30 AM

Post #1 of 1 (3023 views)
Shortcut
Invalid source HTML for this operation Can't Post

What does the subj mean?

I am trying to use htmlarea code in my PERL script, which generates web-page with editing form of some texts. So, it works with 1 textarea, it works with 2 textareas too, but suddenly it stopped to work with 2 textareas on the another page and tells me "Invalid source HTML for this operation". At the same time it works if I follow link to another my script where the generated HTML is totally identical to the non-working page.

So, what should I pay attention to understand what's wrong whith my "HTML source" which became "invalid"?


IE Version 6.0.2800


Code
    <HTML>    
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=x-user-defined"> <script language="Javascript1.2"> <!-- // load htmlarea
_editor_url = "http://www.iris.ge/htmlarea/"; // URL to htmlarea files
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) {
document.write('<scr' + 'ipt src="' +_editor_url+ 'editor.js"');
document.write(' language="Javascript1.2"></scr' + 'ipt>');
} else { document.write('<scr'+'ipt>function editor_generate() { return false; }</scr'+'ipt>'); }
// --></script>

</HEAD>
....

<FORM ACTION="something.cgi" METHOD="POST" ENCTYPE="multipart/form-data">

....

<P>Some text<BR>

<TEXTAREA NAME="gdes"></TEXTAREA>

<script language="JavaScript1.2" defer>
var config = new Object();

config.width = "560";
config.height = "200px";
config.bodyStyle = 'background-color: white; font-family: "KA_KOLHETI"; font-size: x-small;';
config.debug = 0;

config.toolbar = [
['fontname'],
['fontsize'],
['linebreak'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent','separator'],
['HorizontalRule','Createlink','separator']
];

config.fontnames = {
"KA_KOLHETI": "KA_KOLHETI, SPKolkheti, Geo_Times",
"Arial": "arial, helvetica, sans-serif",
"Courier New": "courier new, courier, mono",
"Tahoma": "Tahoma, Arial, Helvetica, sans-serif",
"Times New Roman": "times new roman, times, serif",
"Verdana": "Verdana, Arial, Helvetica, sans-serif",
"impact": "impact",
"WingDings": "WingDings"
};

editor_generate('gdes',config);
</script></P>

<P>Some text<BR>
<TEXTAREA NAME="edes"></TEXTAREA></P>

<script language="JavaScript1.2" defer>
var config = new Object();

config.width = "560";
config.height = "200px";
config.bodyStyle = 'background-color: white; font-family: "Arial"; font-size: x-small;';
config.debug = 0;

config.toolbar = [
['fontname'],
['fontsize'],
['linebreak'],
['bold','italic','underline','separator'],
['strikethrough','subscript','superscript','separator'],
['justifyleft','justifycenter','justifyright','separator'],
['OrderedList','UnOrderedList','Outdent','Indent','separator'],
['HorizontalRule','Createlink','separator']
];

config.fontnames = {
"Arial": "arial, helvetica, sans-serif",
"Courier New": "courier new, courier, mono",
"Tahoma": "Tahoma, Arial, Helvetica, sans-serif",
"Times New Roman": "times new roman, times, serif",
"Verdana": "Verdana, Arial, Helvetica, sans-serif",
"impact": "impact",
"WingDings": "WingDings"
};

editor_generate('edes',config);
</script>

<P>Picture (210x160 pixels)<BR>
<INPUT TYPE="FILE" NAME="f1"></P>
<INPUT TYPE="SUBMIT" VALUE="Upload">

</FORM>

.....



Hmmm. And I can't begin the some lines of source from the new line in the form on this forum. It always places "<script language=..." on the top, right after meta-tag. :(


(This post was edited by tony_geo on Dec 22, 2004, 7:43 AM)

 
 
 


Search for (options)