[jQuery] Re: [validation] how to return for jquery.Format

2009-07-09 Thread Manolet Gmail

how i can use variables to build the url?

On Sat, Jul 4, 2009 at 12:08 PM, Jörn
Zaeffererjoern.zaeffe...@googlemail.com wrote:

 Use the remote method:
 http://docs.jquery.com/Plugins/Validation/Methods/remote#url

 Jörn

 On Sat, Jul 4, 2009 at 6:30 PM, Manolet Gmailmano...@gmail.com wrote:

 Hi, im adding a method. i want to display a message like:
 THECONTENTOFMYINPUT is already user. this is what im doing.

          jQuery.validator.addMethod(checkname, function(value, element) {
                  var name = $('#PromotionName').val();
                  var promotion_id = $('#PromotionId').val();

                  text = $.ajax({ url:
 /promotions/checkName/+name+'/'+promotion_id, type:'post',
 async:false }).responseText;
                  return eval(text);
                }, jQuery.format({0} is already used, 
 $('#PromotionName').val() ));

 but dont works




[jQuery] [validation] how to return for jquery.Format

2009-07-04 Thread Manolet Gmail

Hi, im adding a method. i want to display a message like:
THECONTENTOFMYINPUT is already user. this is what im doing.

  jQuery.validator.addMethod(checkname, function(value, element) {
  var name = $('#PromotionName').val();
  var promotion_id = $('#PromotionId').val();

  text = $.ajax({ url:
/promotions/checkName/+name+'/'+promotion_id, type:'post',
async:false }).responseText;
  return eval(text);
}, jQuery.format({0} is already used, 
$('#PromotionName').val() ));

but dont works


[jQuery] Re: [validation] how to return for jquery.Format

2009-07-04 Thread Manolet Gmail

How i can use the remote method to build the url like:

/promotions/checkName/+name+'/'+promotion_id, type:'post',

?

On Sat, Jul 4, 2009 at 12:08 PM, Jörn
Zaeffererjoern.zaeffe...@googlemail.com wrote:

 Use the remote method:
 http://docs.jquery.com/Plugins/Validation/Methods/remote#url

 Jörn

 On Sat, Jul 4, 2009 at 6:30 PM, Manolet Gmailmano...@gmail.com wrote:

 Hi, im adding a method. i want to display a message like:
 THECONTENTOFMYINPUT is already user. this is what im doing.

          jQuery.validator.addMethod(checkname, function(value, element) {
                  var name = $('#PromotionName').val();
                  var promotion_id = $('#PromotionId').val();

                  text = $.ajax({ url:
 /promotions/checkName/+name+'/'+promotion_id, type:'post',
 async:false }).responseText;
                  return eval(text);
                }, jQuery.format({0} is already used, 
 $('#PromotionName').val() ));

 but dont works




[jQuery] [validate] Custom function when error field

2009-06-24 Thread Manolet Gmail
Hi, im using the 'success' param to add some extra step when validating: i
change the background color of the parent div to green. Also, if there is an
error i want to change the background color of the parent div to orange, but
i cant found a function/callbackMethod/propiertie like 'error' or something.
is there a way to do it?


[jQuery] [autocomplete] display a loading gif

2009-02-09 Thread Manolet Gmail

Hi, i need to show a loading gif while autoocmplete plugins make the
ajax ask. is there anyway?


[jQuery] disable form submit when pressing enter key.

2009-01-19 Thread Manolet Gmail
I need to disable form submission on Enter Key press, is there anyway to do
this for a single form?


[jQuery] Re: disable form submit when pressing enter key.

2009-01-19 Thread Manolet Gmail
no lo he probado pero eso.. haria que el input type=submit se
desabilitara?

On Mon, Jan 19, 2009 at 8:13 AM, Mauricio (Maujor) Samy Silva 
css.mau...@gmail.com wrote:

  $(document).keypress(function (evt) {
  if (evt.keyCode == 13) {
  $(':submit').attr('disabled', 'disbled');
  }
  });

 Maurício

  -Mensagem Original-
 *De:* Manolet Gmail mano...@gmail.com
 *Para:* jquery-en@googlegroups.com
 *Enviada em:* segunda-feira, 19 de janeiro de 2009 10:30
 *Assunto:* [jQuery] disable form submit when pressing enter key.

 I need to disable form submission on Enter Key press, is there anyway to do
 this for a single form?