This is a migrated thread and some comments may be shown as answers.

Editor Issues

3 Answers 158 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Brian Limkemann
Top achievements
Rank 2
Brian Limkemann asked on 14 Jul 2008, 09:14 PM
I am having two problems with Rad Editor (ASP.net AJAX v 2008.01.0619.35).

1) My implementation has the editor in a hidden panel when the page loads. An AJAX call shows the panel. In IE and FF everything works fine - in Safari 3.1.2 the editor appears but does not allow editing.
2) I am trying to use the AJAXSpellCheck tool and in all browsers, it is coming back with a 500.21 error. Details of the message say "Handler 'Telerik.Web.UI.SpellCheckHandler' has a bad module 'ManagedPipelineHandler' in its module list". This is in testing on Windows Vista running IIS7.

I really need to get both of these resolved or look for another solution, so your prompt reply is most appreciated.

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Jul 2008, 09:16 AM
Hi Brian,

Straight to the points:
  1. The problem in Safari 3 is that if you show a hidden control with Ajax, Safari stops with the following error:
      Sys.ScriptLoadFailedException: The script 'http://........' failed to load.
      Check for:
      Inaccessible path.
      Script errors. (IE) Enable 'Display a notification about every script error' under advanced settings.
      Missing call to Sys.Application.notifyScriptLoaded().


    After some digging with google and debugging with Visual Studio, we came across the following post: http://forums.asp.net/p/1252014/2431554.aspx

      It seems that there are some Safari 2 specific hacks in the Ajax framework, which break compatibility with Safari 3. The workaround is:

      if (typeof(Sys.Browser.WebKit) == "undefined")
      {
           Sys.Browser.WebKit = {}; //Safari 3 is considered WebKit
      }
      if( navigator.userAgent.indexOf( 'WebKit/' ) > -1 )
      {
           Sys.Browser.agent = Sys.Browser.WebKit;
           Sys.Browser.version = parseFloat(
           navigator.userAgent.match(/WebKit\/(\d+(\.\d+)?)/)[1]);
           Sys.Browser.name = 'WebKit';
      }

      $telerik.isSafari3 = Sys.Browser.agent == Sys.Browser.WebKit;
      $telerik.isSafari2 = Sys.Browser.agent == Sys.Browser.Safari;
      $telerik.isSafari = $telerik.isSafari2 || $telerik.isSafari3;

     
      We tested this change in Core.js and it seemed to solve the Ajax script loading issue.

    Please, note that if there are no Telerik controls on the page before the ajax request (e.g. only an updatepanel) then Safari 3 will still throw an exception, because Core.js was not loaded and the browser agent was not updated. In this case it will be best to manually add the override script to the page (below the script manager) or use RadAjax (the upcoming Q2 2008 version scheduled for 22th of July' 2008) instead of the original update panel.
  2. In regards to the second problem: Please, review the following forum thread on the subject: HttpHandler.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Brian Limkemann
Top achievements
Rank 2
answered on 28 Jul 2008, 02:58 PM

Version 2008.2 fixed my Safari issues - thank you!

I am still having problems though with the handlers. I still get a 500.21 error when I click the Spell Check button in the RAD Editor. There might be more information in the message, but the message box that pops up display a ton of HTML styles and never the body of the message. Is there any way I can trap that error and write it somewhere? Also, here are my web.config settings:

System.web / httpHandlers:

<add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" validate="false" />

<

add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" validate="false" />

System.webServer / handlers:

<

add name="Telerik.Web.UI.SpellCheckHandler" path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI" />

<

add name="Telerik.Web.UI.DialogHandler" path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI" />

0
Tervel
Telerik team
answered on 30 Jul 2008, 08:10 AM
Hello Brian,

You can trap the entire message by clicking on the popup with the mouse, and pressing Ctrl-A, Ctrl-C

The full content of the error will be copied to the clipboard. You can then send it to us in a support message, or paste it in this thread.


Best wishes,
Tervel
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Brian Limkemann
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Brian Limkemann
Top achievements
Rank 2
Tervel
Telerik team
Share this question
or