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

dereine - August 27, 2009 - 11:18

Is there an error or similar.
This would speed up the fixing of the bug.

#2

iaminawe - August 28, 2009 - 07:55

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

skizzo - September 5, 2009 - 16:14

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 undefined
anonymous(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

gausarts - September 18, 2009 - 12:40

I confirm this happened with jquery_update 2/ jquery 1.3. The counter stays frozen. Any fix yet? Thanks

#5

dereine - September 19, 2009 - 06:24
Status:active» postponed (maintainer needs more info)

OK. I tryed to reproduce it.

  1. Installed jquery update 1.1 ( jquery 1.2.6)
    No erros at all. Perhaps @skizzo could try to reproduce the error on a clean drupal installation. This would help! Thx!
  2. Even after jquery update 2.x I cannot reproduce it.
    I had enabled maxlength for title, body and a cck field.
    I need more informations to reproduce it :(

#6

dereine - September 19, 2009 - 06:47

Does this patch fix it?

AttachmentSize
maxlength-jquery.1.3.patch 1.18 KB

#7

skizzo - September 19, 2009 - 08:04

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

dereine - September 19, 2009 - 08:25

This patch is totally logical wrong :)
I Applied the right wrong from http://drupal.org/node/581854#comment-2059844

#9

gausarts - September 19, 2009 - 13:15

Forgot to mention I have editablefields in place. I'll report back after the patch. Thanks

#10

gausarts - September 19, 2009 - 13:44

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

dereine - September 19, 2009 - 14:10

Sure the patch is totally wrong as i sad.

replace === with !== in the patch :)

#12

gausarts - September 19, 2009 - 15:32

That's what I suspected :) Still figuring out the real conflict though. Thanks

 
 

Drupal is a registered trademark of Dries Buytaert.