Wrox Programmer Forums
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2006, 01:31 PM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default sort mispelt words

Code:
<input type="text" size="12" tabindex="6" name="depdt" />
I have this textbox that accepts a date, but is there a JS function out there that will take misspelt words such as JLU (for JUL) and replace it with JUL?

Picco



www.crmpicco.co.uk
__________________
_______________________
Ayrshire Minis - a Mini E-Community
http://www.ayrshireminis.com
http://www.crmpicco.co.uk
 
Old February 20th, 2006, 09:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

why not just use a calendar control to populate the field or a set of dropdowns to be sure of correct data entry ?
 
Old February 22nd, 2006, 09:06 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

how do you mean a calendar control Greg?
i need to keep it as a text box, but i was meaning if there was a way to take in 'JLU' and replace it with 'JUL'?
ATM if i enter 10JULY it changes to 10JUL, but if I enter 10JLU is there a way to change it to 10JUL??

Regards,
Picco

www.crmpicco.co.uk
 
Old February 23rd, 2006, 10:27 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hii Crmpicco!!
Offcourse you can do this ,for this you need to check for each Letter Combinations e.g 1AUG or 1GUA or 1GAU?? , you need to keep all combinations and if found then replace it with original AUG value.
Hope this will help you


Cheers :)

vinod
 
Old March 2nd, 2006, 10:19 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

you got any code for type of replacement javascript validation, vinod?

www.crmpicco.co.uk





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic sort order or sort datatype kapy_kal XSLT 2 September 18th, 2007 02:10 PM
how to sort cross tab.sort based on row total joxa83 Crystal Reports 7 March 2nd, 2006 09:12 AM
Unable to sort using xsl sort command sly_jimmy_boy XSLT 3 June 17th, 2005 05:15 AM
why I can't use Chinese words? cash JSP Basics 4 February 19th, 2004 10:47 PM
why I can't use Chinese words? cash Pro JSP 1 February 17th, 2004 02:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.