[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-17 Thread Diego A.
Good stuff! Case closed! ;-) On 16/01/2008, psy* [EMAIL PROTECTED] wrote: Thanks :) Got some other help from the author: An additional filter method: $.validator.addMethod(strippedminlength, function(value, element, param) { return $(value).text().length = param }, $.format(Please

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread Diego A.
Are you the same person with 2 different logins? I don't get a javascript error, I get a validation error: Bitte gebe einen Inhalt ein (mindestens 5 Zeichen) ...which according to Google translate means: Please give a content (at least 5 characters) So what exactly is the problem? On Jan 15,

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread Diego A.
OH, I see. FCKEditor doesn't update when you click the submit button. You have to add an onclick event to the submit button to make sure FCKEditor has updated the textarea. Download the FCKEditor plugin, use it to initialize the FCKEditor then use the $.fck.update() method. ie.: input

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread psy*
Ok thanks! Would it also be possible to initialize the editor by myself (the code that's actually being used) and only use the fck.update function??? Diego A. schrieb: OH, I see. FCKEditor doesn't update when you click the submit button. You have to add an onclick event to the submit button to

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread psy*
Yeah I'm the same person, had to do a new login ... The problem is that this should not appear because I typed in more than 5 chars ... and if you focus the textarea field and click the submit button again, the error does not occur as it should be ... Diego A. schrieb: Are you the same person

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread psy*
Ok thanks, I got it to work properly with fckeditor now (with initialization and check)! Thanks again for your nice and fast help! But I have one more question: Do you know if it's possible to strip html tags when checking for the length of the typed in content because when I type in let's say 2

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread psy*
Ok seems to not work with just using the update method without having initialized it with the plugin! Diego A. schrieb: OH, I see. FCKEditor doesn't update when you click the submit button. You have to add an onclick event to the submit button to make sure FCKEditor has updated the textarea.

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread Diego A.
That depends on how the validation is being performed. Just find the line in the code that says: if(s.length5){ ... and change it to: if(s.replace(/\[\s\S]+\/gi,'').length5){ ... this code: .replace(/\[\s\S]+\/gi,'') ...will remove anything within and , then you can check if the actual text is

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-16 Thread psy*
Thanks :) Got some other help from the author: An additional filter method: $.validator.addMethod(strippedminlength, function(value, element, param) { return $(value).text().length = param }, $.format(Please enter at least {0} characters)); and a class using this method:

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-15 Thread KnoxBaby
Can anybody help me out? Thanks! On 7 Jan., 14:01, KnoxBaby [EMAIL PROTECTED] wrote: Hello, look at this page: http://www.jahlabs.de/jquery/test2/ I'm using validaiton plugin to validate the form, but there is the following weird behaviour: When I write something to the textbox and

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-15 Thread Diego A.
You say the error occurs. What is the error? That's probably why people haven't replied to help. When you need help, it helps to be as clear and concise as possible. Anyway, I assume the problem is that you're trying to submit the contents of FCKEditor via ajax. This is not possible without

[jQuery] Re: Weird bahaviour of validation plugin in a textarea used by fckeditor

2008-01-15 Thread psy*
Hello, why not just try it out. For that I did a test page and the tutorial how to behave to see what I mean ... 1) insert sth into the textarea from fckeditor 2) click on submit button - the error occurs that you haven't entered at least 5 chars even though I/you have ... 3) focus the textarea