deesmateen / jquery-spellchecker

Automatically exported from code.google.com/p/jquery-spellchecker
0 stars 0 forks source link

Bug with suggestbox #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I try to use this plugin on my local computer with HTML element. When I
click on wrong word, plugin returns suggest (I see it in Firebug), but
layer spellcheck-suggestbox stays hidden:
<div class="spellcheck-suggestbox" style="width: auto; left: 341px; top:
245.5px; display: none;">

I'm using jQuery 1.4.1 and last version of jquery.spellchecker.

This is my code (I found it here ttp://spellchecker.jquery.badsyntax.co.uk/)

<script>
// check the spelling on element
$("#check-html").click(function(e){
  e.preventDefault();
    var self = this;
        if ($(this).html().match(/^remove/i)) {
          $("#content").spellchecker("remove");
          $(this).html("Check Spelling");
        } else {
          $(".loading").show();

          $("#content")
            .spellchecker({
            engine: $("#service").val()
          })
          .spellchecker("check", function(result){
            $(self).html("Remove Spelling");            
            // spell checker has finished checking words
            $(".loading").hide();
           // if result is true then there are no badly spelt words
           if (result) {
             alert('There are no incorrectly spelt words.');
           }
         });                    
       }
  });   
</script>

Original issue reported on code.google.com by akui...@gmail.com on 10 Feb 2010 at 8:38

GoogleCodeExporter commented 8 years ago
Hi, thank you for the bug report. 

Please let me know what browser, browser version and OS you are using.

If you are able to demonstrate this bug on a demo page, that would be most 
useful as
I'm unable to replicate it.

Original comment by willis...@gmail.com on 10 Feb 2010 at 9:43

GoogleCodeExporter commented 8 years ago
I'm using Firefox 3.5.7 on Windows Vista Home Premium SP2. This is Firebug
screenshort http://picbite.com/image/106400kuzvv/ and sample code
http://pastebin.com/m69bde95f

Original comment by akui...@gmail.com on 10 Feb 2010 at 1:28

GoogleCodeExporter commented 8 years ago
hi, can you test this again using the latest revision? i've comitted some 
changes
that might have fixed this.

Original comment by willis...@gmail.com on 11 Feb 2010 at 12:20

GoogleCodeExporter commented 8 years ago

Original comment by willis...@gmail.com on 11 Feb 2010 at 12:21

GoogleCodeExporter commented 8 years ago
I update all scripts, but still have same problem. This is demo page:
http://debug.x10hosting.com/spell.html, and all my scripts
http://debug.x10hosting.com/spell.zip

Original comment by akui...@gmail.com on 11 Feb 2010 at 5:21

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thank you for posting a demo of the bug, this is very helpful. I'll try get to
debugging this this evening. 

Original comment by willis...@gmail.com on 11 Feb 2010 at 9:39

GoogleCodeExporter commented 8 years ago
hi, i think this is fixed now. can you use the latest revision and confirm its
working now? the bug was related to bad syntax that was allowed with jquery 1.3 
but
not with 1.4

view change: http://code.google.com/p/jquery-spellchecker/source/detail?r=98

Original comment by willis...@gmail.com on 11 Feb 2010 at 11:31

GoogleCodeExporter commented 8 years ago
Oh, great! Now everything is ok! Thank you!

Original comment by akui...@gmail.com on 12 Feb 2010 at 4:30

GoogleCodeExporter commented 8 years ago
thank you for letting me know

Original comment by willis...@gmail.com on 12 Feb 2010 at 2:24