Opened 13 years ago

Closed 10 years ago

#6906 closed Task (invalid)

check if validation is correctly performed with jquery

Reported by: Alfonso Martínez de Lizarrondo Owned by:
Priority: Normal Milestone:
Component: General Version: 3.1
Keywords: Cc:


I think that I've seen some other people claiming problems about that, so we should verify that it works, perhaps even including it in the jquery sample or as a more complex sample for jquery.

Attachments (1)

test.html (2.2 KB) - added by Jakub Ś 12 years ago.

Download all attachments as: .zip

Change History (4)

Changed 12 years ago by Jakub Ś

Attachment: test.html added

comment:1 Changed 12 years ago by Jakub Ś

Status: newconfirmed
Version: 3.1

Please have a look at sample file.

jQuery Validator will rather not validate CKEditor but it can validate textarea, however there are two problems I have found with this issue:

  1. jQuery Validator does not validate disabled fields.

This can be omitted with setting ignore: ''

  1. It seems that validation happens before textarea gets updated.

This can be omited with the following code:

editor = $('#editor1').ckeditorGet();

After you do those two things it's all about how good you know the validator and JavaScript.

As for the second issue I'm not sure if this shouldn't be done by default by jQuery adapter? Any extra thoughts anyone?

Anyway I'm confirming this task - It will just be a matter whether to leave it or change it to bug.

comment:2 Changed 10 years ago by Piotr Jasiun

This bug has been fixed during general jQuery adapter bug fixing #10281.

You still need to tell jQuery Validator to validate hidden fields using ignore: but now updateElement is called properly.

comment:3 Changed 10 years ago by Piotr Jasiun

Resolution: invalid
Status: confirmedclosed
Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy