Home Search Member List Faq Register Login  
UltimateEditor
Javascript Error using IE8 on Vista/Win7

Thread Starter: jobejufranz   Started: 05-15-2009 2:32 AM   Replies: 18
 Karamasoft Support Forums » General Discussions » UltimateEditor » Javascript Error using IE8 on Vista/Win7
 Printable Version    « Previous Thread   Next Thread »
  15 May 2009, 2:32 AM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Javascript Error using IE8 on Vista/Win7
Hi,

Just to let you know, I'm not exactly sure if this is a bug. I'm using the latest build of UE 3.3.

Changing Fore Ground Color using IE 8 on either Vista/Win7 RC results into a javascript error below


Message: Unspecified error.Line: 7Char: 100232Code: 0URI: http://XXX/UltimateEditorInclude/UltimateEditor.js
 


but Using IE 8 on XP has no issue.

Please advice, TIA


  
  15 May 2009, 9:20 AM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
1) Are you experiencing this problem with only ForeColor button, or any other button that pops up a dialog window such as BackColor, Symbol, Emoticon, and so on?

2) Are you experiencing it only on your local machine, or does the same thing happen when you connect to the live demo section of our website as well?

3) Please also explain the exact steps to reproduce the behavior.

  
  15 May 2009, 6:10 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
Hi,

Ans.

1. So far i experience it only on ForeColor and BackColor but not on Symbol and Emoticons.

2. On my Dev Machine, Intranet and on your Website as well.

3. I just highlight any text and just click ForeColor and/or BackColor to change the Text color or the Text Background color.

Hope this helps. TIA.

  
  16 May 2009, 6:16 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
Which edition of Vista are you using? We tested on Vista Business and it worked just fine.
  
  17 May 2009, 5:56 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
Hi,

I've used Vista Business also and Win 7 RC.

Thanks.

  
  17 May 2009, 10:09 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
We were finally able to reproduce the issue on Vista Business and we are currently working on fixing it. We will let you know as soon as we resolve it. In the meantime, you can apply the workaround of setting the UseIEColorDialog property of your UltimateEditor control to False.
  
  18 May 2009, 5:47 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
Hi,

Thank you very much.

I am really amazed of support. Excellent!

I'll just wait for the update.

Thanks again.

  
  20 May 2009, 1:24 AM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
 Karamasoft wrote:
We were finally able to reproduce the issue on Vista Business and we are currently working on fixing it. We will let you know as soon as we resolve it. In the meantime, you can apply the workaround of setting the UseIEColorDialog property of your UltimateEditor control to False.


Hi,

I was testing your suggestion and it was actually working for few days. After that I am getting a javascript error ueColorBoxWidth is Undefined when i click the "Foreground Color".

I'm gettng an error on:
  -> Windows XP and IE 7
  -> Windows XP and IE 8
  -> Windows Vista and IE 8 (intermittent)
  -> Windows 7 RC and IE 8

Please advice. TIA

  
  20 May 2009, 3:20 AM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7

This is the scenario.

There are 6 UE and each is inside its own updatepanel.

updatepanel1
  UltimateEditor1

updatePanel2
  UltimateEditor2

...

if i go to UE2 and click Foreground Color I will encounter the error. In short, if i go to UE2 to UE5 first and click Foreground Color, I will encounter the error.

But if i go to UE1 first and click Foreground Color, no error. After that go to either UE2 to UE5 the error will not popup.

I hope you understand my explanation.

Please advice. TIA


  
  20 May 2009, 11:20 AM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
If you send us a self-contained web app having this issue, we can try it in our test environment. Thanks.
  
  20 May 2009, 9:51 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
Default.aspx

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="Default1" EnableEventValidation="False" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="UltimateEditor" Namespace="Karamasoft.WebControls.UltimateEditor" TagPrefix="kswc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title>Untitled Page</title>

<script type="text/javascript">

function SetEditorHtmlBeforePostBack() {

if (typeof (UltimateEditors) != 'undefined') {

for (var editorId in UltimateEditors) {

UltimateEditors[editorId].SetEditorHtmlBeforePostBack();

}

}

return true;

}

</script>

</head>

<body>

<form id="form1" runat="server" onsubmit="return SetEditorHtmlBeforePostBack()">

<asp:ScriptManager ID="ScriptManager1" runat="server" />

<div>

<br />

<br />

Define

<br />

<br />

<asp:UpdatePanel ID="UpdatePanel1" runat="Server">

<ContentTemplate>

<kswc:ultimateeditor

id="UltimateEditor1"

runat="server"

XHTML="true"

Width="700"

TextBoxWidth="693"

TextBoxHeight="300"

AutoCleanWordFormatOnLoad="true"

AutoCleanWordFormatOnPaste="true"

AutoReplaceFontWithSpan="true"

DesignTabVisible = "false"

DesignTabEnabled = "false"

HtmlTabVisible = "false"

HtmlTabEnabled = "false"

PreviewTabVisible = "false"

PreviewTabEnabled = "false"

UseIEColorDialog="false"

EditorSource="~/UltimateEditorInclude/UltimateEditorBasic.xml">

<UltimateSpell MisspelledWordStyle-Font-Bold="True" MisspelledWordStyle-ForeColor="#FF0000">

<SpellButton ButtonType="Button" CausesValidation="True" ImageAlign="AbsMiddle" ImageUrl=""

Text="Spell Check" />

</UltimateSpell>

</kswc:ultimateeditor>

<br />

<asp:Button ID="Button1" Text="Edit" runat="Server" />

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button1" />

</Triggers>

</asp:UpdatePanel>

<br />

<br />

Measure

<br />

<br />

<asp:UpdatePanel ID="UpdatePanel2" runat="Server">

<ContentTemplate>

<kswc:ultimateeditor

id="UltimateEditor2"

runat="server"

XHTML="true"

Width="700"

TextBoxWidth="693"

TextBoxHeight="300"

AutoCleanWordFormatOnLoad="true"

AutoCleanWordFormatOnPaste="true"

AutoReplaceFontWithSpan="true"

DesignTabVisible = "false"

DesignTabEnabled = "false"

HtmlTabVisible = "false"

HtmlTabEnabled = "false"

PreviewTabVisible = "false"

PreviewTabEnabled = "false"

UseIEColorDialog="false"

EditorSource="~/UltimateEditorInclude/UltimateEditorBasic.xml">

<UltimateSpell MisspelledWordStyle-Font-Bold="True" MisspelledWordStyle-ForeColor="#FF0000">

<SpellButton ButtonType="Button" CausesValidation="True" ImageAlign="AbsMiddle" ImageUrl=""

Text="Spell Check" />

</UltimateSpell>

</kswc:ultimateeditor>

<br />

<asp:Button ID="Button2" Text="Edit" runat="Server" />

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button2" />

</Triggers>

</asp:UpdatePanel>

<br />

<br />

Analyze

<br />

<br />

<asp:UpdatePanel ID="UpdatePanel3" runat="Server">

<ContentTemplate>

<kswc:ultimateeditor

id="UltimateEditor3"

runat="server"

XHTML="true"

Width="700"

TextBoxWidth="693"

TextBoxHeight="300"

AutoCleanWordFormatOnLoad="true"

AutoCleanWordFormatOnPaste="true"

AutoReplaceFontWithSpan="true"

DesignTabVisible = "false"

DesignTabEnabled = "false"

HtmlTabVisible = "false"

HtmlTabEnabled = "false"

PreviewTabVisible = "false"

PreviewTabEnabled = "false"

UseIEColorDialog="false"

EditorSource="~/UltimateEditorInclude/UltimateEditorBasic.xml">

<UltimateSpell MisspelledWordStyle-Font-Bold="True" MisspelledWordStyle-ForeColor="#FF0000">

<SpellButton ButtonType="Button" CausesValidation="True" ImageAlign="AbsMiddle" ImageUrl=""

Text="Spell Check" />

</UltimateSpell>

</kswc:ultimateeditor>

<br />

<asp:Button ID="Button3" Text="Edit" runat="Server" />

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button2" />

</Triggers>

</asp:UpdatePanel>

<br />

<br />

Improve

<br />

<br />

<asp:UpdatePanel ID="UpdatePanel4" runat="Server">

<ContentTemplate>

<kswc:ultimateeditor

id="UltimateEditor4"

runat="server"

XHTML="true"

Width="700"

TextBoxWidth="693"

TextBoxHeight="300"

AutoCleanWordFormatOnLoad="true"

AutoCleanWordFormatOnPaste="true"

AutoReplaceFontWithSpan="true"

DesignTabVisible = "false"

DesignTabEnabled = "false"

HtmlTabVisible = "false"

HtmlTabEnabled = "false"

PreviewTabVisible = "false"

PreviewTabEnabled = "false"

UseIEColorDialog="false"

EditorSource="~/UltimateEditorInclude/UltimateEditorBasic.xml">

<UltimateSpell MisspelledWordStyle-Font-Bold="True" MisspelledWordStyle-ForeColor="#FF0000">

<SpellButton ButtonType="Button" CausesValidation="True" ImageAlign="AbsMiddle" ImageUrl=""

Text="Spell Check" />

</UltimateSpell>

</kswc:ultimateeditor>

<br />

<asp:Button ID="Button4" Text="Edit" runat="Server" />

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button2" />

</Triggers>

</asp:UpdatePanel>

<br />

<br />

Control

<br />

<br />

<asp:UpdatePanel ID="UpdatePanel5" runat="Server">

<ContentTemplate>

<kswc:ultimateeditor

id="UltimateEditor5"

runat="server"

XHTML="true"

Width="700"

TextBoxWidth="693"

TextBoxHeight="300"

AutoCleanWordFormatOnLoad="true"

AutoCleanWordFormatOnPaste="true"

AutoReplaceFontWithSpan="true"

DesignTabVisible = "false"

DesignTabEnabled = "false"

HtmlTabVisible = "false"

HtmlTabEnabled = "false"

PreviewTabVisible = "false"

PreviewTabEnabled = "false"

UseIEColorDialog="false"

EditorSource="~/UltimateEditorInclude/UltimateEditorBasic.xml">

<UltimateSpell MisspelledWordStyle-Font-Bold="True" MisspelledWordStyle-ForeColor="#FF0000">

<SpellButton ButtonType="Button" CausesValidation="True" ImageAlign="AbsMiddle" ImageUrl=""

Text="Spell Check" />

</UltimateSpell>

</kswc:ultimateeditor>

<br />

<asp:Button ID="Button5" Text="Edit" runat="Server" />

</ContentTemplate>

<Triggers>

<asp:AsyncPostBackTrigger ControlID="Button2" />

</Triggers>

</asp:UpdatePanel>

<br />

<br />

</div>

</form>

</body>

</html>


Default.aspx.vb


Imports System.Data

Imports System.Data.SqlClient

Imports Karamasoft.WebControls.UltimateEditor

Partial Class Default1

Inherits System.Web.UI.Page

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

If Not Page.IsPostBack Then

UltimateEditor1.ToolbarsVisible = False

UltimateEditor1.ReadOnly = True

UltimateEditor2.ToolbarsVisible = False

UltimateEditor2.ReadOnly = True

UltimateEditor3.ToolbarsVisible = False

UltimateEditor3.ReadOnly = True

UltimateEditor4.ToolbarsVisible = False

UltimateEditor4.ReadOnly = True

UltimateEditor5.ToolbarsVisible = False

UltimateEditor5.ReadOnly = True

End If

End Sub

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click

UltimateEditor1.ToolbarsVisible = True

UltimateEditor1.ReadOnly = False

UltimateEditor1.Focus()

End Sub

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click

UltimateEditor2.ToolbarsVisible = True

UltimateEditor2.ReadOnly = False

UltimateEditor2.Focus()

End Sub

Protected Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button3.Click

UltimateEditor3.ToolbarsVisible = True

UltimateEditor3.ReadOnly = False

UltimateEditor3.Focus()

End Sub

Protected Sub Button4_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button4.Click

UltimateEditor4.ToolbarsVisible = True

UltimateEditor4.ReadOnly = False

UltimateEditor4.Focus()

End Sub

Protected Sub Button5_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button5.Click

UltimateEditor5.ToolbarsVisible = True

UltimateEditor5.ReadOnly = False

UltimateEditor5.Focus()

End Sub

End Class
 


  
  21 May 2009, 4:57 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
It seems that th eerror occurs because you display the toolbar buttons after the AJAX callback and one of the JS files needed for the color functionality (UltimateEditor.color.js) is not rendered during page loaded. You have two options to resolve the problem.

1) You can manually add the script reference to the JS file as follows:

<SCRIPT language=javascript src="/AJAXEnabledWebSite1/UltimateEditorInclude/UltimateEditor.js" type=text/javascript>
<!--
//-->
</SCRIPT>

Please make sure that the src attribute is a valid path in the above code (e.g. replace AJAXEnabledWebSite1 with the name of your web app directory).

2) Or, you can place an UltimateEditor control inside a hidden SPAN element, which will include the color JS file automatically.

  
  21 May 2009, 5:33 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7
 Karamasoft wrote:
It seems that th eerror occurs because you display the toolbar buttons after the AJAX callback and one of the JS files needed for the color functionality (UltimateEditor.color.js) is not rendered during page loaded. You have two options to resolve the problem.

1) You can manually add the script reference to the JS file as follows:

<SCRIPT language=javascript src="/AJAXEnabledWebSite1/UltimateEditorInclude/UltimateEditor.js" type=text/javascript>
<!--
//-->
</SCRIPT>

Please make sure that the src attribute is a valid path in the above code (e.g. replace AJAXEnabledWebSite1 with the name of your web app directory).

2) Or, you can place an UltimateEditor control inside a hidden SPAN element, which will include the color JS file automatically.


Thanks for the reply, unfortunately both of the suggestions provided still encounter error


runtime error: 'ueColorBoxWidth' is undefined
 


Please advice. TIA

  
  21 May 2009, 5:40 PM
jobejufranz is not online. Last active: 10/12/2009 8:48:47 PM jobejufranz

Top 10 Posts
Joined on 03-11-2009
Posts 52
Re: Javascript Error using IE8 on Vista/Win7

And one more thing, removing all UpdatePanel and put 5 UE alone still encounter the error.

TIA.




  
  21 May 2009, 7:41 PM
Karamasoft is not online. Last active: 9/2/2010 12:02:18 PM Karamasoft

Top 10 Posts
Joined on 09-05-2004
Posts 5,325
Re: Javascript Error using IE8 on Vista/Win7
Sorry, we made a typo. When you try the first option, please replace UltimateEditor.js with UltimateEditor.color.js as follows:

<SCRIPT language=javascript src="/AJAXEnabledWebSite1/UltimateEditorInclude/UltimateEditor.color.js" type=text/javascript>
<!--
//-->
</SCRIPT>

Again, please replace AJAXEnabledWebSite1 in the above code to match the name of your web app. Do View Source in your page and search for UltimateEditor.js to see the correct path and make it similar.

  
 Page 1 of 2 (19 items) 1 2 »
Karamasoft Support Forums » General Discussions » UltimateEditor » Javascript Error using IE8 on Vista/Win7

You can add attachments
You can post new topics
You can reply to topics
You can delete your posts
You can edit your posts
You can create polls
You can vote in polls
Forum statistics are enabled
Forum is unmoderated

© 2002-2010 Karamasoft LLC. All rights reserved.