Closed (won't fix)
Project:
MaxLength
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Aug 2009 at 09:52 UTC
Updated:
26 Aug 2021 at 19:48 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerIs there an error or similar.
This would speed up the fixing of the bug.
Comment #2
iaminawe commentedNo error as such, the automated character countdown does not work and the field lets you enter more than the specified amount of characters.
When I try and save, it fails to validate the field and then lets you know that there are too many characters entered. So it is still functional but is no longer intuitive with Jquery 1.3.
Thanks for looking at this
Gregg
Comment #3
skizzo commentedI am seeing the same behaviour. I am running Maxlength 6.x-2.0-beta1
After installing jquery_update 6.x-1.1 the status page reads jQuery Update 1.2.6
My CCK field is: Text, Text Area, 5 Rows, Requirwd, 1 value, Plain Text, max 500 chars, countdown enabled
Enabling Firebug I see the following in Console (right after loading the form page with CCK field)
field.val() is undefinedanonymous(Object length=0 prevObject=Object jquery=1.2.6)maxlength.js?J (line 7)
anonymous()maxlength.js?J (line 32)
anonymous()jquery.min.js?J (line 27)
anonymous()jquery.min.js?J (line 27)
anonymous([function(), function(), function(), 2 more...], function(), Object name=args)jquery.min.js?J (line 21)
anonymous()jquery.min.js?J (line 27)
[Break on this error] var remainingCnt = limit - field.val().length;\nmaxlength.js?J (line 7)
Comment #4
gausarts commentedI confirm this happened with jquery_update 2/ jquery 1.3. The counter stays frozen. Any fix yet? Thanks
Comment #5
dawehnerOK. I tryed to reproduce it.
No erros at all. Perhaps @skizzo could try to reproduce the error on a clean drupal installation. This would help! Thx!
I had enabled maxlength for title, body and a cck field.
I need more informations to reproduce it :(
Comment #6
dawehnerDoes this patch fix it?
Comment #7
skizzo commenteduhm... before applying the patch I tried to reproduce the problem on same system used for #3, but the problem is gone. I will keep an eye on it and if/when the problem shows up again I will appply the patch. Meanwhile let see what gausarts says. Thank you.
Comment #8
dawehnerThis patch is totally logical wrong :)
I Applied the right wrong from http://drupal.org/node/581854#comment-2059844
Comment #9
gausarts commentedForgot to mention I have editablefields in place. I'll report back after the patch. Thanks
Comment #10
gausarts commentedHi,
The counter works fine in fresh install, jquery_update2, jquery 1.3.2. The patch only put the counter to freeze.
Somehow it conflicts with other javascripts that I am still investigating. Sorry to bother you. I'll report back when I find out the conflict.
Thanks.
Comment #11
dawehnerSure the patch is totally wrong as i sad.
replace === with !== in the patch :)
Comment #12
gausarts commentedThat's what I suspected :) Still figuring out the real conflict though. Thanks
Comment #13
skizzo commentedplease see charCode Property in case it's related.
Comment #14
cedeweyThe Drupal 6 version of Maxlength is no longer supported so I'm marking this Closed (won't fix).
I also encourage you, if you haven't already, to upgrade your site to Drupal 8/9. We are actively maintaining that version and you would enjoy all of the other features of the latest version of Drupal.