206 Topics

Member Avatar for
Member Avatar for Kullercode

This script is supposed to show an alert if the text is longer than eight characters, what is wrong with it? <!DOCTYPE html> <html> <body> <input id="input"><button onclick="myFunction()">Click me</button> <script> function myFunction() { var x=document.getElementById("input").value if (x = > 8) { alert("Text must be lower than 8 letters") return false; …

Member Avatar for rholdbataller
0
176
Member Avatar for leyla

I was just wondering if there was any way to validate a listbox into only allowing a letter to be entered once, no matter the case. I am making a Hangman game and I only want the user to be able to enter a letter once, but I want the …

Member Avatar for leyla
0
681
Member Avatar for shotokanpoloto

I would like to validate columns in an asp:Gridview but am unsure how to do so as all the tutorials I have found show a previous version on Microsoft Visual Studio (I am using 2010). How do I validate each column of the Gridview? Thanks This is the code of …

Member Avatar for JorgeM
0
173
Member Avatar for Kullercode

Just started learning JavaScript can someone please tell me what is wrong with this code <!DOCTYPE html> <html> <body> <h1>Password Requirement</h1> <p id="demo">Please enter your password</p> <input id="myInput" type="text" > <script> function myFunction() var a=document.getElementById("demo") var b=document.getElementById("myInput").value var c=document.getElementById("myBtn") if (b=="26a8f9e"(b)) { alert("Correct") } else { alert("Incorrect") } </script> <button …

Member Avatar for amrita111
0
300
Member Avatar for ello

Hi There Guys, I've found a lot on this subject, but the sheer amount of scripts and suggestions is overwhelming and researching this has confused me more than anything. I have a fully working contact form, but at the moment it simply checks the users input on submition of the …

Member Avatar for veedeoo
0
2K
Member Avatar for SMode55

I wrote this script for my validation page.I used javascript and jquery mixed it all up. For some reason when I submit the gender validation doesnt work right, it keeps asking to validate but every other condition works. What I've pasted below is just the gender condition and the "if …

Member Avatar for AleMonteiro
0
928
Member Avatar for vanderbergit

Hello DaniWeb forum users, Thank you for reading my post. I am trying to build a function that checks the content of the form.. My HTML website contains a dynamic number of elements (with a standard of 5 elements) Each element contains 2 input text fields and a jqueri slider. …

Member Avatar for AleMonteiro
0
163
Member Avatar for millsy007

Hi I am using some code to validate uk postcode. I was wondering how I could make this work with AJAX so that the check is carried out on entry. Here is what I have so far: <form name="postcodeform" method="post"> <input type="postcode" /> Postcode<br /> </form> function IsPostcode($postcode) { $postcode …

Member Avatar for Taywin
0
373
Member Avatar for renzlo

Hi, All, I need to check if the date values is valid this current year, for example, February 29, 2012, I have used Isdate function but it says "True", is there any other way to do this? Thanks in advance. renzlo

Member Avatar for Reverend Jim
0
214
Member Avatar for fcvolunteer

I'm working on a dynamic form where based on a visitor's selection of radio buttons certain <div> text and additional fields are shown or hidden. I would like to make some of these additional fields required but only if they are visible. Problem is: I can read php more than …

Member Avatar for fcvolunteer
0
1K
Member Avatar for double_cola

Good afternoon everyone. I need to write out a simple validation. It needs to validate only if a user enters certain keywords. Here what I have so far: if(!preg_match("Indiana, Ohio", $state)) { $errors .= "You have entered the wrong state."; } What would be the correct preg_match function to only …

Member Avatar for double_cola
0
187
Member Avatar for pawan768

Hi , I want to add a form , which will after any one like us on Facebook then on Google Plus, After likeing us on FB and G+ page automatically opend. How i can apply these validation and how i check wether any one like fb or G+ like.

Member Avatar for adam.adamski.96155
0
86
Member Avatar for iamjin04

<html> <head> <script language="JavaScript"> function validator() { if (text_form.name.value == "") { alert("Please enter your name"); text_form.name.focus(); return false; } return true; } </script> </head> <body> <form name="text_form" method="get" action="success.html" onsubmit="validator()"> <label for="name"> Name </label> <input type="text" name="name"/> <br /> <input type="submit" value="submit" /> <input type="reset" value="reset" /> </form> </body> …

Member Avatar for iamjin04
0
170
Member Avatar for sateal8

Im trying to get my program to look like the following Welcome to the 64th Primetime Emmy Awards! ============================================================================== The nominees for Outstanding Comedy Series are: [1] Write In [2] The Big Bang Theory, CBS [3] Curb Your Enthusiasm, HBO [4] Girls, HBO [5] 30 Rock, NBC [6] Veep, HBO …

Member Avatar for 2teez
0
111
Member Avatar for HankReardon

For some reason I am having trouble comparing strings when inside a while statement using the using the && and || operators. while (input.equals("Yes")) && (input.equals("No")) The error message implies the parentheses are ending the statement prematurely. Can someone please give me a suggestion? Thanks, Jim

Member Avatar for NormR1
0
184
Member Avatar for pmondal47

hi friendzzz, can u pls say how to validate textboxes in a fieldset using javascript..i know how to validate form but not a pirticular fieldset within a form..so i need ur help frnzz...pls reply as early as possible..

Member Avatar for iamthwee
0
86
Member Avatar for kimmi_baby

Hi, I have a wordpress site but really I'm looking for a plugin that will allow one word captcha. I have been searching for this but it doesn't appear to be the right name for it. What I want it to do is say "Please type the word frog" and …

Member Avatar for kimmi_baby
0
156
Member Avatar for SimonFrance

Hi, Can anyone help me to remove form field validation for "quantity" field? I want to make it optional. Here is the code. http://paste2.org/p/2168944 I tried to remove myself but got error "Sorry some error occurred and unable to...". I will be very thankful for your help. Regards, Simon

Member Avatar for urtrivedi
0
121
Member Avatar for Khav

Hi Guys i need help on my school project.Currently i want to validate some important data in a textbox as soon as they are entered by the user Here is my coding........ Private Sub Textbox1_Leave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Textbox1_Leave Call ValidateTextbox(Textbox1.Text) - Set saved = …

Member Avatar for Khav
0
242
Member Avatar for grant.baker

Hi I'm working on a form validation script. Up to this point, I've only written very basic regex validations. The input that I'm trying to validate should have entries in the following format AAA111 separated by comma space. So some sample entries are : `ABC111` or `ABC111, ABC112, ABC113`. Here's …

Member Avatar for grant.baker
0
284
Member Avatar for Travus

I am using the [jQuery validation](http://docs.jquery.com/Plugins/Validation) plug in on a website I am creating. The validation works, and the messages are set, however when they get displayed on my webpage they have line breaks. I only display one message at a time so I dont know why a single message …

Member Avatar for Travus
0
1K
Member Avatar for veledrom

Hi, Let's say I have a textarea to collect user inputs. Someone turns up and writes a html code (eg. a table of something, or a img tag with src to naked image, a div with 10000px width and height ....) instead of plain text into it. It wouldn't be …

Member Avatar for veledrom
0
136
Member Avatar for meriyas

Hi, I would know how can I validate the following php form fields Need for my student project. Please help me Fields requied are **Mobile Number**: `(10 digits number field)` **Gender **:` (Radio button or drop down box)` **Email **: `(valid email field)` **Date of Birth:**`( YYYY/MM/DD)` Please help me..Urgent.. …

Member Avatar for heavyman
0
314
Member Avatar for Sendy Hipo

Hi! i have problems with input validation, so here goes the problem : Write a program that uses a structure to store the following data about a customer account: Name Address City, State, and ZIP Telephone Number Account Balance Date of Last Payment VideoNote Solving the Weather Statistics Problem Review …

Member Avatar for Sendy Hipo
0
406
Member Avatar for minbor

Hi everyone, I have a web page where a fields needs to be validated if another is not empty. e.g. 'date' needs to be checked if 'quantity' has a number in it. I’m not exactly a pro with .net and am fiddling with compare and custom validators. All help on …

Member Avatar for absb
0
143
Member Avatar for jjoensuu

Hi, a question about stand-alone Java applications that do not have a background DB. In our Uni class we were asked to build a very small application using JOptionPane methods such as "showInputDialog". The application asks for users name and birthdate and at the end displays a summary of these …

Member Avatar for JamesCherrill
0
438
Member Avatar for design92

Hi all, I am trying to figure out javascript for mobile / home validation. Just to let you know, it must be equal to 11 digits (already done it) and accept only NUMERICAL characters, so letters are not accepted once validated or when you input data. My issue: I don't …

Member Avatar for stbuchok
0
180
Member Avatar for Lusiphur

It's been a long while since I've last been here but I've spent the last 2 hours pulling my hair out trying to figure this out and I'm hoping for a bit of help with this one. I have a question/response check (a human verification check) on my page and …

Member Avatar for Lusiphur
0
146
Member Avatar for loserspearl

Im working on applying a schema to an xml document but my editor (exchanger xml) is giving me some errors I can't figure out Ln 35 Col 67 - s4s-elt-invalid-content.1: The content of '#AnonType_inventory' is invalid. Element 'element' is invalid, misplaced, or occurs too often. Ln 16 Col 58 - …

0
130
Member Avatar for turpentyne

help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // …

0
109

The End.