File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Website validation using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Website validation using javascript" Watch "Website validation using javascript" New topic
Author

Website validation using javascript

Sapan Shah
Greenhorn

Joined: Jan 01, 2010
Posts: 25
I want to make a validation using javascript that user should enter two dot(.) and before first dot(.) www should be written.


Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Please take the time to choose the correct forum for your posts. This forum is for questions on JSP. For more information, please read this.

This post has been moved to a more appropriate forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Where is your code? What problems are you having with it?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39575
    
  27
It sounds like you wish to ensure that something like "www.xyz.com" is entered - be aware that web site addresses don't need to start with www, and can have one, two or more dots.


Ping & DNS - updated with new look and Ping home screen widget
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you basically asking how JavaScript regular expressions work?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Website validation using javascript
 
Similar Threads
JavaScript disabled
Need HTML And Javascript Code
both javascript and serverside validations running
jsf -javascript
how to show validation error messages on the jsp login fields from servlet