Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

RapidSpell problems with IE8/9 on quirks-mode page - RapidSpell Web ASP.NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
JimH
#1 Posted : Monday, October 13, 2014 5:23:31 PM
Rank: Member

Groups: Registered

Joined: 10/13/2014
Posts: 4
I'm trying to get RapidSpell working on an aged Classic ASP web site. The site's pages are not HTML standards compliant, so browsers must use quirks mode to display them. I discovered that RapidSpell doesn't work on these pages when using IE8 and IE9. It works great with Chrome, Firefox, and IE7, 10 and 11.

I'm using RapidSpell version 4.3.2h.

Below is a plain HTML page that demonstrates the problem.

quirks_mode_spellcheck_test.html:
Code:
<!--
  Spellcheck does not work on this quirks-mode page for:
     IE 8
     IE 9

  It works for other versions of IE (7, 10, 11), and for Chrome and Firefox.

  To trigger standards mode instead of quirks mode, add this first line:
  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  To make sure IE picks up a change from standards mode back to quirks mode,
  close the tab or window and browse back to the page in a new tab or window.
-->
<html>
  <head>
    <title>RapidSpell Quirks Mode Test</title>
    <!-- Adjust the path of the RapidSpell-AYT.js script as needed -->
    <script type="text/javascript" src="../Scripts/RapidSpell/RapidSpell-AYT.js"></script>
    <script type="text/javascript">
      rapidSpell.setParameterValue('default', 'UserDictionaryFile', '');
    </script>
  </head>
  <body>
    <form id="f">
      <textarea id="tb1" rows="8" cols="80">Spel chek this, please.</textarea>
    </form>
  </body>
</html>

Thanks for any help you can offer.
Jim
#2 Posted : Tuesday, October 14, 2014 2:26:08 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Thanks for the report (seems to have happened with a between releases version). Please update to this version (of the RapidSpell-AYT.js script) - we're going to do an official release in the coming week with this in it too.

https://www.dropbox.com/.../RapidSpell-AYT.js?dl=0

Jim

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


JimH
#3 Posted : Tuesday, October 14, 2014 3:19:24 AM
Rank: Member

Groups: Registered

Joined: 10/13/2014
Posts: 4
Many thanks for the quick response. Unfortunately, something's not quite right. The new version of the script is getting an error:

Chrome: Uncaught SyntaxError: Unexpected token function RapidSpell-AYT.js:1022
IE9: SCRIPT1004: Expected ';' RapidSpell-AYT.js, line 1022 character 154

I semi-blindly stuck in a semicolon before "function attachEvents" at line 1022 character 154, and the error went away. However, things were then functioning the same as they had been originally, with spellcheck not working in IE8 and IE9 in quirks mode.

Hopefully this was just a small glitch that will be easy to fix.

Thanks for the help.
Jim
#4 Posted : Tuesday, October 14, 2014 1:52:35 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,669
Location: Canada
Sorry about that. Your fix is correct, it was caused by the compressor removing newlines.

Are you seeing any errors in F12's console window for IE8 or 9? If you right click on "Spel" in the textbox do you get a menu (even though it's not underlined)?

My guess is that it's not resolving the img resources correctly for you - are you able to use an absolute path for our script, eg

src="/Scripts/RapidSpell/RapidSpell-AYT.js"

rather than

src="../Scripts/RapidSpell/RapidSpell-AYT.js"

That might be the workaround you need, but I will also try to reproduce later today with IE9. Yesterday I had used an absolute path for the src, that's the only change I made apart from to the script.

-your feedback is helpful to other users, thank you!

-your feedback is helpful to other users, thank you!


JimH
#5 Posted : Tuesday, October 14, 2014 2:15:34 PM
Rank: Member

Groups: Registered

Joined: 10/13/2014
Posts: 4
Your image theory looks to be a winner:
- Right-clicking works even though no underlining is visible
- Using an absolute path fixes the problem

Thanks for the terrific customer support. It's really appreciated.
JimH
#6 Posted : Tuesday, October 14, 2014 2:45:39 PM
Rank: Member

Groups: Registered

Joined: 10/13/2014
Posts: 4
Just FYI, the absolute path fixes the problem both when using the 4.4.0c script that you supplied and when using the original 4.3.2h script.
Forum Jump  
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.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.