26 Mar 2008, 2:35 PM
|
proace
Joined on 02-20-2008
Austin, TX
Posts 13
|
double underlines and other weirdness
|
|
|
|
Hey guys, got a new one for you.
A user discovered a bug where sometimes if you forget to put a space between an unknown word and a regular word, UltimateSpell will underline the run-on word, which is fine. The problem is that if you then enter a space between the two words, it should the only underline the unknown word, and the regular word should not be underlined.
For example, in our case, the user entered "TharpPlumbing" so UltimateSpell underlined the whole thing. The user then added a space between Tharp and Plumbing. When he did that, the whole thing remained underlined, and Tharp got an additional underline. See screenshot.
I was unable to recreate this problem on your demo, but I created a test vb application and was able to recreate it there. The contents of my test page are below. There's nothing extra in the codebehind.
<%@ Register TagPrefix="cc1" Namespace="Karamasoft.WebControls.UltimateSpell" Assembly="UltimateSpell" %> <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="UltimateSpellTest.WebForm1" smartNavigation="True"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <title>WebForm1</title> <meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"> <meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"> <meta name="vs_defaultClientScript" content="JavaScript"> <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"> </HEAD> <body> <form id="Form1" method="post" runat="server"> <H1>Ultimate Spell Test</H1> <P> <asp:textbox id="TextBox1" runat="server" TextMode="MultiLine" Width="100%" Height="100px" Font-Names="Arial"></asp:textbox> </P> <cc1:ultimatespell id="usSpellCheck" runat="server" ShowSpellButton="False" SpellAsYouType="True" ControlIdsToCheck="TextBox1" EnableViewState="True"> <MisspelledWordStyle Font-Bold="True" ForeColor="Red"></MisspelledWordStyle> <SpellButton ImageAlign="AbsMiddle" ImageUrl="" ButtonType="Button" Text="Spell Check" CausesValidation="True"></SpellButton> </cc1:ultimatespell> </form> </body> </HTML>
So if you run that test page, here's how you can recreate the double underline and some other weird behavior:
- In the textbox type "TharpPlumbing test." without quotes. TharpPlumbing should now be underlined.
- Add a space between Tharp and Plumbing. Tharp should now be double underlined, and "Tharp Plumbing" should be underlined as well.
- Hit Control + A and press backspace to clear the field.
- Type "UltimateSpell test." again without quotes. UltimateSpell will be underlined
- Add a space between Ultimate and Spell and now both should be underlined including the space, even though they're both words that are spelled correctly.
After that, depending on how fast you do this, you can cause the next text you type to be doubled or spaced weird. By this I mean sometimes after that your next text will be changed to something like this. It only does that sometimes, but it basically happens after you do the steps I listed above, then hit Control A again and delete the text in the field, then start typing something again. In the case of the screenshot, I typed "UltimateSpell test." It kind of depends on how long you wait after step 5 to do it. I found if you do it immediately after step 5, that causes it to happen. Other times instead of the spacing being weird, it just doubles what I typed, so if I typed "UltimateSpell test." after the spellchecker does its work, it would replace my text with "UltimateSpell test.UltimateSpell test."
Still yet another strange behavior I found is that if you type "TharpPlumbing test." and then add a space between Tharp and Plumbing, and keep deleting the space and re-adding it, the spellchecker starts to freak out after a while but eventually it gets it right so that only Tharp is underlined and nothing else. This can also be recreated on my test page.
Sorry for the long post, but this should be enough info for you guys to look into. If you need screenshots, my test application, or any other info from me, just let me know. Since I can't recreate the problem in your demo application, is there just something silly I'm doing wrong?
Thanks, Anthony
|
|
|
|
|
|
|
|
|