[jQuery] Re: [Validate plugin] Question about the 'remote' AJAX option

2009-07-09 Thread Guillaume Lecanu
On Jul 8, 6:31 pm, Jörn Zaefferer joern.zaeffe...@googlemail.com wrote: The JSON response can be true/false, or a String, handled as false (invalid), and the string will be used as the error message. You need the latest version (1.5.5) for that to work properly. Perfect ! Thanks

[jQuery] [Validate] How to disable onkeyup checks on a specific field ?

2009-07-09 Thread Guillaume Lecanu
Hello, I have a field that use the 'remote' option to call a server side script to check the field value. If the field value is wrong, after each new key pressed, the remote server side is called. This could be very ennoying and increase the load on our server. There is a way to disable the

[jQuery] Re: How to disable onkeyup checks on a specific field ?

2009-07-09 Thread Guillaume Lecanu
I have found the solution : jQuery.validator.setDefaults({ onkeyup: function(element) { if (element.name == 'myField') { return true; } if ( element.name in this.submitted || element == this.lastElement ) {

[jQuery] [Validate plugin] Question about the 'remote' AJAX option

2009-07-08 Thread Guillaume Lecanu
Hi, I trying to replace my old AJAX system by the Validate plugin of jQuery with the remote option. There is a way to return a custom error message directly from the server side script ? For example, I have a username.php server side script that check : - If the username is not used by someone

[jQuery] load() and sortable()

2008-10-29 Thread Guillaume
Hi everybody, I can't load content from a page and use sortable afterwards ! The problem lies in the 'afficher_rubriques' function. When content is loaded (unordered list ul/ul with id=rubriques) I whish to use sortable. But nothing happens. I have to use my function sortable with a click action

[jQuery] dblclick function bind and content selection

2008-03-02 Thread guillaume sempé
Hello, I have a function binded on dblClick event of a DIV. When user dblclick on the DIV its content is selected and my function is executed. Is there any solution to avoid content selection on dlbclick ? Thank you. Guillaume.

[jQuery] How to avoid Double click content selection and click event

2008-03-02 Thread guillaume sempé
there is also a function on click event and when i dblclick on the div the function binded on click event is always executed before the one binded on dblclick. Is there any solution to avoid the click function execution and execute only the dblclick one when user double click ? Thank you. Guillaume

[jQuery] fadeout response div after form submission

2007-11-13 Thread Guillaume Luszack
This is my first post so Hello to everyone on this great list ! :) I have a form which I submit thanks to the jQuery Form plugin. var pdoptions = { target: '#pdresult' }; $('#pdform').ajaxForm(pdoptions); When submitting the form I get the response in the #pdresult div and I would like to