Jquery 1.3 problems
iaminawe - August 27, 2009 - 09:52
| Project: | Maxlength |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Description
This does not work with Jquery 1.3 yet. The remaining characters do not count down.

#1
Is there an error or similar.
This would speed up the fixing of the bug.
#2
No 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
#3
I 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)
#4
I confirm this happened with jquery_update 2/ jquery 1.3. The counter stays frozen. Any fix yet? Thanks
#5
OK. 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 :(
#6
Does this patch fix it?
#7
uhm... 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.
#8
This patch is totally logical wrong :)
I Applied the right wrong from http://drupal.org/node/581854#comment-2059844
#9
Forgot to mention I have editablefields in place. I'll report back after the patch. Thanks
#10
Hi,
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.
#11
Sure the patch is totally wrong as i sad.
replace === with !== in the patch :)
#12
That's what I suspected :) Still figuring out the real conflict though. Thanks