This is a migrated thread and some comments may be shown as answers.
Javascript error when selecting font size in IE8
10 Answers 39 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brian Adle
Top achievements
Rank 1
Brian Adle asked on 31 Mar 2011, 04:03 PM
I can reproduce this on the demo page: http://demos.telerik.com/aspnet-mvc/editor.  Steps to reproduce are:

1. Delete all content from the editor.
2. Click in the editor, type some text
3. Click on the font size and change the font size.
4. JS Error: Line: 1
Error: Invalid argument.

I've run a test app locally and the error comes down to the line of code in telerik.editor.min.js "a2.moveToElementText(a7)"  a2 is object with two values which equal the text that as already been written and A7 has an outer html = "<A></A>"

This is consistent and repeatable for me. 

10 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 01 Apr 2011, 09:15 AM
Hello Brian,

What browser are you using? I could not reproduce the problem in Firefox, nor IE9 (standards and compatibility view).

All the best,
Alex Gyoshev
the Telerik team
0
Brian Adle
Top achievements
Rank 1
answered on 04 Apr 2011, 01:41 PM
Check the title of the bug. "IE8"
0
Brian Adle
Top achievements
Rank 1
answered on 04 Apr 2011, 01:42 PM
The trick seems to be that your cursor needs to be at the end of the entered text in the text area and then change font.
0
Atanas Korchev
Telerik team
answered on 05 Apr 2011, 09:10 AM
Hi Brian Adle,

 I managed to reproduce the reported bug. I am sending you a hotfix build which resolves it.

 I also updated your Telerik points.

All the best,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Adle
Top achievements
Rank 1
answered on 05 Apr 2011, 03:18 PM
This latest code you've sent me has broken a feature I've been using for several versions.  I was previously able to create a Telerik Window in JS and assign it HTML and a contentURL and it would display the HTML while the contentURL loaded.  This allowed me to get a faux loading message.  Is there a work around for this?  I have some windows that take 4-5 seconds to load and having now feedback for the user is a bad experience.
0
Atanas Korchev
Telerik team
answered on 05 Apr 2011, 03:25 PM
Hello Brian Adle,

 This is not a known issue. Could you send me the code which you are using so we can debug it ? We fixed a problem with contentUrl and the fix may have broken your scenario.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Adle
Top achievements
Rank 1
answered on 05 Apr 2011, 03:28 PM
createDialog: function (contentUrl, name, height, width, modal, onCloseFunction) {
 
        if (!jQuery.isFunction(onCloseFunction)) { onCloseFunction = function () { }; }
 
        var html = '<div class=" ZoneDefaultText " style="width:' + width + 'px; text-align:center; ">Loading ' + name + '...<br /><img src="images/loading.gif" height="20px" alt="" /></div>'
        var window = $.telerik.window.create({
            title: name,
            html: html,
            contentUrl: contentUrl,
            modal: modal,
            resizable: false,
            draggable: true,
            height: height,
            width: width,
            onClose: onCloseFunction
        });
        return window
    },

There's some App specific code in here but I think you can get the basic idea of what we were doing.
0
Alex Gyoshev
Telerik team
answered on 07 Apr 2011, 11:47 AM
Hello Brian Adle,

Thank you for reporting this -- it seems that this was a regression due to a bug fix (when contentUrl is a remote URL, the window displays an iframe). It is now fixed and your scenario is backed by a unit test -- the attached build contains the fix.

Kind regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Brian Adle
Top achievements
Rank 1
answered on 07 Apr 2011, 03:37 PM
This is getting comical... The 407 build fixes the window issue but the editor JS error is back that was fixed in 405.
0
Alex Gyoshev
Telerik team
answered on 08 Apr 2011, 12:24 PM
Hello Brian Adle,

It seems that this is a timing issue and depends on how fast you perform the steps. The attached build addresses this.

Best wishes,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Brian Adle
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Brian Adle
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or