how to prevent security leaks in my own created form which data I write into my db?
Basicly I thought to replace the dangerous chars ('',"",~,....)... but I don't know how to do that in a clean way for each formular element ( more than 20)...
I don't know if asp.net provides an easy thing for that.? Ok the validators I do already some ...
Hi!
I'm using CKEditor on a textarea and the jQuery validation plugin (http://bassistance.de/jquery-plugins/jquery-plugin-validation/)
With the jQuery plugin it's possible to mark a field as empty or required.
When a field e.g. "product name" is empty the field will be marked as invalid when submitting the form.
But, while typing in a...
Hi all,
I'm trying to create a validation expression that checks the length of an input and allows text and punctuation marks (e.g. , ? ; : ! " £ $ % )
What I have come up with so far is "^\s*(\w\s*){1,2046}\s*$" but this won't allow any punctuation marks. To be honest I'm pretty sketchy in this area so any help would be greatly appre...
Hi,
I'm trying to find a benchmark for how long users are willing to wait for a response from a remote service. In my case the response is for very useful but not business critical validation of data entry. I guess that there must have been some work done in the HCI space on this.
If you know of a generally accepted definition for soft...
Hello friends,
I am trying to add a required fields validator programmatically in asp.net. But I get the following error message - Control 'req2' of type 'RequiredFieldValidator' must be placed inside a form tag with runat=server
The c# code i have used is below -
protected void Page_Load(object sender, EventArgs e)
{
Req...
i have from and i am using jquery validate jquery.validate.pack.js
its work fine when i press submit button, i just add following code
$(document).ready(function(){
$("#contactform").validate();
});
and class="validate" for text box
but i want to call php file with Ajax after validate ...
Hi,
What i'm trying to do is search a textarea while the user is typing for a url beginning with http:// then if found, fire a function, and stop searching for an url.
I know this can be done with jQuery but I'm having quite a few issues with :contains, indexOf, regex, etc.
heres a bit of code to explain what I'm trying to do!
$(docu...
Hi
Is it possible to change the CSS class of the validated control if it's not valid without codebehind or just with less code ex. Set automatic CSS class to "invalid" of all textboxes which have a required field validator?...
I don't like to make a check for each validator (isvalid) I have, manually.
Thank you and best regards
...
In my Spring application, I have a form that has multiple inputs of the same field (the user can enter several user names at once). In the validator, I check for the existance of each user name and I want to show an error on the form next to each invalid user name. I can set an error in the validator that will show on the form, but thi...
DataAnnotations: Range, required... got it.
But just checking value==5 or value==bool?
...
I know for example the Zend Framework has some capability for creating form elements with validators. But now, lets say the user enters complete garbage data, which is invalid. What would happen next? Lets say the JS part goes wrong or JS is disabled, and the server receives the garbage data.
How do the "big" PHP frameworks handle this...
For my framework I've written down this concept to solve the form validation problem. I want it to be as straightforward as possible for the framework user.
Every Form (=object) has one or many FormElements (=objects). Every FormElement can have 0-n FormValidators (=objects). Everything easily configured through the backend (simple drag...
I've read Phil Haack's post on custom client-side validation in ASP.NET MVC 2. I want to do the same thing but with the jQuery adapter and using ASP.NET MVC 2 RC (as opposed to MVC 2 Beta that the post uses). Has anyone been able to figure how to do this?
I specially want to implement the password matching validation (i.e. password & ...
Hi all,
I'm trying to implement a validation script (bassistance) with a jquery form wizard (http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery.aspx) but I'm having some problems.
On the page for the jquery wizard, a guy named "Tommy" came up with a piece of code to implement bassistance with the code. But for some r...
Hi all, simple question really (can hazard a guess but just need to make sure),
Just need a Yes/No answer as can't seem to claify anywhere.
Reason? Web pages for phones, where javascript support is "sketchy" among all mobile browsers, so doing away with anything javascript altogether and was wondering if there are any alternatives.
(A...
I have a simple form like below that I have added the jQuery validations plugin onto (http://docs.jquery.com/Plugins/Validation). I have this form in a modal popup window so if there are errors and the user closes the window when they open it again the form still has the errors. In my popup close callback I tried calling resetForm() but ...
I have a pretty simple ASP.NET MVC page and am using TinyMCE to allow users to enter comments. However, when I pass the data to a controller I receive the following error message:
A potentially dangerous Request.Form
value was detected from the client
The consensus is that ValidateInput("false") should be set on the Action method...
Hello,
Just started with jquery and am trying to get form validation to work using the validation plugin. Then I discovered the maskedinput plugin (http://digitalbush.com/projects/masked-input-plugin/) and tried to use it on a phone number field.
Things work to a point:
When the phone field comes in focus it displays the place holders ...
Hi
i am using jquery validate and i have a login form that validate
the validation code show below
$("form#loginForm").validate({
submitHandler: function(form){
//code here
},
rules: {
user_login: { required: true },
user_password: { required: true} ...
I am using Joern's jquery validation plugin 1.6.
My goal is to have the following behavior: remove the error message for an element once the user focuses it. From what I understand setting 'focusCleanup: true' should take care of this.
However (at least on my browser (Firefox 3.5.7 on Linux)), I only get the desired behavior (ie, error...