This is my form:  <%= form_for [@company,@company_branch], :html => { :onsubmit => "return validateName();" }, remote: true do |f| %>     <%= f.text_field :name %>     ...   The "validateName" validation works fine w...
For some context, the DOM Hierarchy:   Layout.cshtml  > View    > Partial View   The Layout file contains:  <head>     @Scripts.Render("~/bundles/jquery")     @Scripts.Render("~/bundles/jqueryui") </head> <body>...
I have a file upload form. I'd like to validate the file size before actually uploading the file. I can do this in Chrome, but how do I get it to work in IE?  Note that this is possible for gmail to do. When I drag a file into the file attachment...
I'm using the client_side_validations gem to validate a contact form. The gem displays error messages beside fields when they are invalid. I have also implemented a custom callback (see the Github wiki) to display a success message beside fields...
I've got a simple_form_for with two nested simple_fields_for in it. I have installed the gem client_side_validations to generate client side validations. But this works only for one of my two nested simple_fields_for. I updated client_side_valida...
Can someone help me to validate the following rules using a RegEx pattern  Max length : 15 Minimum length : 6 Minimum character count : 1 Minimum numbers count : 1 Consequent repeated character count : 2...
I use the client-side-validation gem and its simple_form plugin for client-side validation. I have a custom model with ActiveModel::Validations included and use simple_form to fill it.  <%= simple_form_for @solution, :validate => true, :url =&g...
Are there any solutions to implement REST authentications for clients using only JavaScript?  JavaScript code is always readable by anyone. I read many posts about REST authentication here, but didn't find any answers....
I've noticed a big shift toward more and more client-side Javascript code these days. Packages like Backbone.js and others perform validation, access control and more. Is this causing security risks and if so what risks should we be aware of? Is...
I have written a regex to validate a number containing three digits and one decimal but it always return false in all cases.   re = new RegExp("^\d{1,3}\.*\d{0,1}$"); re.test(33.0);   I tried many combinations but its not working. Aim is to v...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.