Questions tagged [backbone.validation.js]

A validation plugin for Backbone.js that validates both your model as well as form input

A validation plugin for Backbone.js that validates both your model as well as form input http://thedersen.com/projects/backbone-validation

22 questions
0
votes
0 answers

Backbone.validation, validate without DOM updates

As expressed in this backbone.validation issue, when using the plugin as shown in this fiddle, we should get a validation performed by isValid() - without params. If the this.model.attributes have changes, isValid() should validate the properties on…
miphe
  • 1,763
  • 1
  • 20
  • 33
0
votes
2 answers

How to implement backbone.js validations/custom validations?

Need to validate one field based on the value of other field using backbone validation js. How to approach this ? Is it possible to validate using lib methods like range validator, max validator OR should I go with custom method ?? Normally this is…
0
votes
1 answer

Backbone Validations on multiple fields of a model and returning same error

I have a model which has three fields field1, field2, field3. I have to validate that if any one of the three fields has some value then no error should be returned else an error should be returned. My research: I can use Backbone.Validations plugin…
Gaurav Kumar
  • 1,091
  • 13
  • 31
0
votes
1 answer

Backbone Validation with complex objects

I'm having trouble getting Backbone.Validation to handle complex object validation. per the documentation: Validating complex objects is also supported. To configure validation rules for objects, use dot notation in the name of the attribute,…
captDaylight
  • 2,224
  • 4
  • 31
  • 42
0
votes
2 answers

Backbone.Validation plugin - How to validate only the attributes that is set

How to validate just the one's that are set. Is there another method other than model.isValid(true) or model.validate() which would not validate the complete model. Here are some config that is there in my code _.extend Backbone.Model.prototype,…
coool
  • 8,085
  • 12
  • 60
  • 80
0
votes
1 answer

Backbone.validation not working on save

I have a simple model using the Backbone.Validations plugin. var LocationModel = Backbone.Model.extend({ validation: { location_name: { required : true, msg : 'A name is required for the location' } } // end…
redconservatory
  • 21,438
  • 40
  • 120
  • 189
-1
votes
1 answer

Backbone validater length rule doesn't count special characters?

I have a validation rule where a password must be 6 characters or more. But this validation rule is not satisfied/fails is the users password contains special characters. For example; a password such as @ _a&^ results in the validator saying…
sazr
  • 24,984
  • 66
  • 194
  • 362
1
2