Welcome close

We've made some changes!

As you may have noticed, we've made some changes to the DevCenter to include the new Exchange site, a code community for Ektron developers. You may use the same username and password to login for both the Exchange and DevCenter. Your DevCenter profile has moved over to the Exchange site. You also may notice we have removed some profile functionality in favor of new functionality, including Activity Streams. We welcome your feedback about the site on the Exchange forum.

SEARCH : searchSite
This SectionSite Wide
SocialNetworkCollaboration

RSS Feed Print Category View
Forcing Editor 508 compliance breaks javascript in workarea
Chris McG
Posted: Friday, February 5, 2010 5:14 AM
Joined: 12/7/2009
Posts: 59


Hi

 

I am running CMS version 8 in IE 8

 

I've set the 508 compliance to be forced in the editor , when I go back into the content area and try to add or edit HTML content I get the following 3 javascript errors (See below)

 

With no compliance- it works , with Warn about compliance it works.

 

When I try to save/publish or exit I see screen in the attachment

 

Any ideas?

 

--------------------------------

 

 

 

Message: Syntax error

Line: 1095

Char: 4

Code: 0

URI: http://[website]/WorkArea/edit.aspx?

close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back

_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20

7&AllowHTML=1

 

 

 

Message: 'initialSummaryPane' is undefined

Line: 2575

Char: 21

Code: 0

URI: http://[website]/WorkArea/edit.aspx?

close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back

_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20

57&AllowHTML=1

 

 

 

Message: Permission denied

Line: 522

Char: 10

Code: 0

URI: http://[website]/WorkArea/edit.aspx?

close=false&ContType=1&LangType=2057&type=add&createtask=1&id=0&folderid=0&back

_file=content.aspx&back_action=ViewContentByCategory&back_id=0&back_LangType=20

 

57&AllowHTML=1

 


File Attachment(s):
workarea-problem.jpg (29515 bytes)

Ektron Doug D
Posted: Friday, February 5, 2010 7:45 AM
Joined: 6/22/2006
Posts: 1833


Most likely, the first error is causing the others. Please provide the line of code causing the syntax error. This is most easily done by running the debugger when the error occurs.
EktronCecilia
Posted: Friday, February 5, 2010 8:41 AM
Joined: 8/9/2006
Posts: 400


Hi Chris,

This is a known defect that has been fixed in 8.0 SP1 and later. I strongly suggest you to upgrade to 8.0 SP1. Otherwise, if you have access to the server file, backup your ~\workarea\edit.aspx.vb and search for these lines.

If "2" = settings_data.Accessibility Then
                ValidateContentPanel.Text += " if (typeof Button != ""undefined"") {" & vbCrLf
                ValidateContentPanel.Text += "  if (""publish"" == Button.toLowerCase() || ""submit"" == Button.toLowerCase()) {" & vbCrLf
                ValidateContentPanel.Text += "   alert(errContent);" & vbCrLf
                ValidateContentPanel.Text += "   $ektron().trigger(""wizardPanelShown"");" & vbCrLf
                ValidateContentPanel.Text += "   return false;" & vbCrLf
                ValidateContentPanel.Text += "  }" & vbCrLf
                ValidateContentPanel.Text += "  else { " & vbCrLf
                ValidateContentPanel.Text += "   if (confirm(errContent + ""\n"" + sInvalidContent)) {" & vbCrLf
                ValidateContentPanel.Text += "    return true;" & vbCrLf
                ValidateContentPanel.Text += "   } " & vbCrLf
                ValidateContentPanel.Text += "   $ektron().trigger(""wizardPanelShown"");" & vbCrLf
                ValidateContentPanel.Text += "   else {return false;} " & vbCrLf

                ValidateContentPanel.Text += "  }" & vbCrLf
                ValidateContentPanel.Text += " }" & vbCrLf

and replace with these

If "2" = settings_data.Accessibility Then
                ValidateContentPanel.Text += " if (typeof Button != ""undefined"") {" & vbCrLf
                ValidateContentPanel.Text += "  if (""publish"" == Button.toLowerCase() || ""submit"" == Button.toLowerCase()) {" & vbCrLf
                ValidateContentPanel.Text += "   alert(errContent);" & vbCrLf
                ValidateContentPanel.Text += "   $ektron().trigger(""wizardPanelShown"");" & vbCrLf
                ValidateContentPanel.Text += "   return false;" & vbCrLf
                ValidateContentPanel.Text += "  }" & vbCrLf
                ValidateContentPanel.Text += "  else { " & vbCrLf
                ValidateContentPanel.Text += "   if (confirm(errContent + ""\n"" + sInvalidContent)) {" & vbCrLf
                ValidateContentPanel.Text += "    return true;" & vbCrLf
                ValidateContentPanel.Text += "   } " & vbCrLf
                ValidateContentPanel.Text += "   else {" & vbCrLf
                ValidateContentPanel.Text += "       $ektron().trigger(""wizardPanelShown"");" & vbCrLf

                ValidateContentPanel.Text += "       return false;" & vbCrLf
                ValidateContentPanel.Text += "   } " & vbCrLf
                ValidateContentPanel.Text += "  }" & vbCrLf
                ValidateContentPanel.Text += " }" & vbCrLf

 

Please note that the differences between the 2 are in green color. These should keep you continue with your current version.

Thanks and regards

Cecilia


Chris McG
Posted: Friday, February 5, 2010 10:13 AM
Joined: 12/7/2009
Posts: 59


Thanks Cecilia

I have had problems in the past when I tried to upgrade to SP1.

Maybe I wasn't following the right upgrade path , could you recommend a document or some steps to perform the upgrade?

Failing that I can use the Javascript you have provided.

Thanks
Chris


 

Jump to different Forum... 






Register for Synergy 2010

Articles
Design without Borders, yet with Structure
CMS400.NET and Adobe Flex
GeoMapping
EkML Ektron Markup Language
Taxonomy

[First] [Previous] [Next] [Last]


See All Articles