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
> }, $.for
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:
class="{require
That depends on how the validation is being performed.
Just find the line in the code that says:
if(s.length<5){ ...
and change it to:
if(s.replace(/\<[\s\S]+\>/gi,'').length<5){ ...
this code:
.replace(/\<[\s\S]+\>/gi,'')
...will remove anything within < and >, then you can check if the
actual t
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
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
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 t
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
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.: wrote:
> Are yo
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 1
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 textar
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 withou
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 tex
12 matches
Mail list logo