BO Lincoln
2-Dec-2006, 02:04 PM
Dec 2, 2006
Electos 3.0 Beta - V3.0.8.120
I am converting a web site to Electos.
The existing site is a mix of HTML and ASP pages held together by an HTML
menu. For the most part, I have been creating new content pages in Electos
with "Add Page", using the "Simple Page" document structure and the default
normal.asp template. Once in the FCKeditor I switch to "Source" view. I open
the source of the existing HTML page in Notepad and copy everything between
(but not including) the body tags. Then I paste the HTML in the FSCK editor
and switch out of source view. Save and voila! With minor tweaking the page
is ready to be published.
Hit a snag on one page where Electos Studio/FCKeditor is complaining about
an "illegal character" in the pasted HTML when swapping out of source view
to display view.
"A runtime error has occurred. Do you wish to debug?"
Line: 0
Error: Invalid character
Tracked the illegal character down by pasting the HTML into a new document
in Multiedit and looking for "funky characters". The "illegal character"
turned out to be a "backtick" (decimal 146). The "backtick was used by a
previous developer instead of a single quote in a confirm function call from
an "onclick" inside an anchor tag.
<a onclick="return confirm('Ready to proceed?')" target="mainFrame"
href="emplview.htm">Employee of the month</a>
While the content creator has some responsibility for adhering to standards
regarding valid characters, shouldn't Electos filter out those characters
that are so "illegal" that they cause a runtime error?
-BO Lincoln
Electos 3.0 Beta - V3.0.8.120
I am converting a web site to Electos.
The existing site is a mix of HTML and ASP pages held together by an HTML
menu. For the most part, I have been creating new content pages in Electos
with "Add Page", using the "Simple Page" document structure and the default
normal.asp template. Once in the FCKeditor I switch to "Source" view. I open
the source of the existing HTML page in Notepad and copy everything between
(but not including) the body tags. Then I paste the HTML in the FSCK editor
and switch out of source view. Save and voila! With minor tweaking the page
is ready to be published.
Hit a snag on one page where Electos Studio/FCKeditor is complaining about
an "illegal character" in the pasted HTML when swapping out of source view
to display view.
"A runtime error has occurred. Do you wish to debug?"
Line: 0
Error: Invalid character
Tracked the illegal character down by pasting the HTML into a new document
in Multiedit and looking for "funky characters". The "illegal character"
turned out to be a "backtick" (decimal 146). The "backtick was used by a
previous developer instead of a single quote in a confirm function call from
an "onclick" inside an anchor tag.
<a onclick="return confirm('Ready to proceed?')" target="mainFrame"
href="emplview.htm">Employee of the month</a>
While the content creator has some responsibility for adhering to standards
regarding valid characters, shouldn't Electos filter out those characters
that are so "illegal" that they cause a runtime error?
-BO Lincoln