Welcome Guest Search | Active Topics | Sign In | Register

'eo_emoticons' is undefined Options
PetePages
Posted: Tuesday, March 19, 2013 6:18:41 PM
Rank: Member
Groups: Member

Joined: 1/2/2011
Posts: 19
I have been using the editor control for some time without problem. I recently upgraded and then changed my template to the xp_full template. I am now getting the following scripting error when I open the edit control on my asp.net page:

'eo_emoticons' is undefined

Was unable to find any documentation or posts regarding this and am hoping it's a simple deployment problem.

thanks,

Pete
eo_support
Posted: Tuesday, March 19, 2013 6:45:57 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Please try to refresh the page and see if it works. We tested with the latest build and there was no problem. So it might just because your browser has a cached older version of the script files.

Thanks!
PetePages
Posted: Tuesday, March 19, 2013 10:14:01 PM
Rank: Member
Groups: Member

Joined: 1/2/2011
Posts: 19
I've taken the following steps, to no avail: 1) refreshed the page; 2) started a new instance of IE Express; 3) deleted all the files that had been generated in my eo_scripts folder; 4) did a text search on the whole project for "eo_emoticons" (no hits); verified that the latest eo.web.dll is in my bin folder.

Here is an expansion of the error info:

SCRIPT5009: 'eo_emoticons' is undefined
eo.acb4f824-f0d8-4d61-bf0f-dcacbd552e34.js, line 6 character 6385

And here is the script file header:

// EO.Web Script Library. Copyright (C) 2006-2010 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 10.0.47.2

any help greatly appreciated.

thanks,

Pete
eo_support
Posted: Wednesday, March 20, 2013 9:04:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Please try to update to 10.0.54.2 (recently updated on our download page) first. If the problem continuous, please post the page online. We can then take a look and see what we can find.

Thanks!
PetePages
Posted: Thursday, March 21, 2013 8:11:32 AM
Rank: Member
Groups: Member

Joined: 1/2/2011
Posts: 19
Have updated and the error persists. I am using VS 2012 and ASP.Net 4.5. Here is a relatively simple page I created to demonstrate the problem, Markup, and then codebehind. Just bring up the page and click the "Toggle Editor" button.

thanks,

Pete

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="pgEditTest.aspx.vb" Inherits="ELC.pgEditTest" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<eo:ScriptManager ID="EO_ScriptManager" runat="server">
</eo:ScriptManager>
<ajaxtoolkit:ToolkitScriptManager ID="toolkitScriptManager" runat="server" ScriptMode="Release" />
<asp:UpdatePanel ID="upanel" runat="server">
<ContentTemplate>
<asp:Button ID="btnToggle" runat="server" Text="Toggle Editor" />
<asp:MultiView ID="mvw" runat="server" ActiveViewIndex="0">
<asp:View ID="vw1" runat="server">
<div id="divEditor" runat="server" style="height: 400px; width: 925px; background-color: aqua">
</div>
</asp:View>
<asp:View ID="vw2" runat="server">
<table>
<tr>
<td>
<eo:Editor ID="Editor1" runat="server" DesignTabButtonText="&lt;div style=&quot;padding-left:18px;padding-top:3px;&quot;&gt;Design&lt;/div&gt;" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False" Height="482px" HighlightColor="255, 255, 192" HtmlTabButtonText="&lt;div style=&quot;padding-left:18px;padding-top:3px;&quot;&gt;HTML&lt;/div&gt;" PreviewTabButtonText="&lt;div style=&quot;padding-left:18px;padding-top:3px;&quot;&gt;Preview&lt;/div&gt;" ToolBarSet="Full" ToolBarSkin="Office2003_XPStyle" Width="918px">
<HeaderStyle CssText="background-color:#9ebef5;padding-bottom:1px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<EditAreaStyle CssText="border-bottom-color:gray;border-bottom-style:solid;border-bottom-width:1px;border-left-color:gray;border-left-style:solid;border-left-width:1px;border-right-color:gray;border-right-style:solid;border-right-width:1px;border-top-color:gray;border-top-style:solid;border-top-width:1px;" />
<FooterStyle CssText="padding-right: 2px; padding-left: 2px; padding-bottom: 2px; padding-top: 0px; background-color:#9ebef5;" />
<DesignTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102001); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102002); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102003); width: 63px; font-family: tahoma; height: 21px" />
</DesignTabButtonStyles>
<HtmlTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102004); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102005); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102006); width: 63px; font-family: tahoma; height: 21px" />
</HtmlTabButtonStyles>
<PreviewTabButtonStyles>
<NormalStyle CssText="font-size: 12px; background-image: url(00102007); width: 63px; font-family: tahoma; height: 21px" />
<HoverStyle CssText="font-size: 12px; background-image: url(00102008); width: 63px; font-family: tahoma; height: 21px" />
<SelectedStyle CssText="font-size: 12px; background-image: url(00102009); width: 63px; font-family: tahoma; height: 21px" />
</PreviewTabButtonStyles>
<BreadcrumbLabelStyle CssText="padding-right: 6px; padding-left: 6px; font-size: 12px; padding-top: 1px; font-family: tahoma" />
<BreadcrumbItemStyle CssText="background-color:#d7e4fa;border-bottom-color:#002d96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002d96;border-left-style:solid;border-left-width:1px;border-right-color:#002d96;border-right-style:solid;border-right-width:1px;border-top-color:#002d96;border-top-style:solid;border-top-width:1px;font-family:tahoma;font-size:12px;margin-top:1px;padding-bottom:1px;padding-left:3px;padding-right:3px;padding-top:1px;" />
<BreadcrumbItemHoverStyle CssText="background-color:#ffd69c;border-bottom-color:#002d96;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#002d96;border-left-style:solid;border-left-width:1px;border-right-color:#002d96;border-right-style:solid;border-right-width:1px;border-top-color:#002d96;border-top-style:solid;border-top-width:1px;font-family:tahoma;font-size:12px;margin-top:1px;padding-bottom:1px;padding-left:3px;padding-right:3px;padding-top:1px;" />
<BreadcrumbItemSeparatorStyle CssText="width: 3px; height: 10px" />
<EmoticonDropDownStyle CssText="border-right: #435f96 1px solid; border-top: #435f96 1px solid; border-left: #435f96 1px solid; border-bottom: #435f96 1px solid; background-color: #eef3fa" />
<BreadcrumbDropDownStyle CssText="border-right: #435f96 1px solid; border-top: #435f96 1px solid; border-left: #435f96 1px solid; border-bottom: #435f96 1px solid; background-color: #eef3fa" />
<EmoticonStyle CssText="background-color:white;border-bottom-color:#c5d3ed;border-bottom-style:solid;border-bottom-width:1px;border-left-color:#c5d3ed;border-left-style:solid;border-left-width:1px;border-right-color:#c5d3ed;border-right-style:solid;border-right-width:1px;border-top-color:#c5d3ed;border-top-style:solid;border-top-width:1px;padding-bottom:2px;padding-left:2px;padding-right:2px;padding-top:2px;" />
<CustomFooterTemplate>
<div style="FLOAT: left; WIDTH: 200px;">
<asp:PlaceHolder ID="ViewTabs" runat="server"></asp:PlaceHolder>
</div>
<div style="padding-top: 1px">
<asp:PlaceHolder ID="Breadcrumb" runat="server"></asp:PlaceHolder>
</div>
</CustomFooterTemplate>
</eo:Editor>
</td>
</tr>
</table>
</asp:View>
</asp:MultiView>
</ContentTemplate>
</asp:UpdatePanel>
</form>
</body>
</html>

Public Class pgEditTest
Inherits System.Web.UI.Page

Private Sub btnToggle_Click(sender As Object, e As EventArgs) Handles btnToggle.Click
mvw.ActiveViewIndex = If(mvw.ActiveViewIndex = 0, 1, 0)
End Sub
End Class
eo_support
Posted: Thursday, March 21, 2013 6:03:13 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Thanks for the testing code. We are able to reproduce the problem with the code you provided. The root of the problem is related to UpdatePanel.

There are two workarounds for this problem:

1. Replace the UpdatePanel with CallbackPanel. Our CallbackPanel provides very much the same functionality as UpdatePanel but works better with our own controls. One major difference between UpdatePanel and CallbackPanel is by default, you do not need to set triggers for UpdatePanel, but you need to explicitly set trigger controls for our CallbackPanel;

2. If you must use UpdatePanel, you can place a hidden Editor control outside of the UpdatePanel. For example:

Code: HTML/ASPX
<div style="display:none">
    <eo:Editor runat="server" ID="dummy"></eo:Editor>
</div>
<asp:UpdatePanel ID="upanel" runat="server">
    <ContentTemplate>
        ....
    </ContentTemplate>
</asp:UpdatePanel>


Note the div above the UpdatePanel contains a hidden Editor control.

Hope this helps.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.