Urgent how to trim the spaces that in the text fileds?
Hi ,
I have an email field .If a person enter the value in to the field along with space i need to validate that field by removing spaces.
I already have validation for this email field as shown below..
function isEmailValid(fld){
var result = true;
if(fld != null){
var r = new RegExp();
r.compile("^[a-z0-9_\\-\\.\\']+\\@[a-z0-9_\\-\\.]+\\.[a-z]{2,4}$","i");
result = r.test(fld.rawValue);
return result;
suggest the best how i will do that
Thanks in advance
Bharathi
Hi Bharathi,
I use this JavaScript function to trim whitespace.
function trimWhitespace(value)
if (value.replace)
return value.replace(/^\s*(.*?)\s*$/, '$1');
else
return value;
Hope it helps,
Bruce
Similar Messages
-
how can I remove large number of photos on my iPhone 4s from iTunes using a PC - Lenovo Think Pad - so that I can reduce the space used on the phone by 50%?
You don't need iTunes for that. Simply connect the iPhone to the PC where it will be recognized as a camera. You can then select the photos you wish to transfer, transfer them, and delete them.
-
Three keys of my keyboard are not working, the cap one, the return key and the space bar, while the virtual keyboard shows to others keys highlighted in orange (^ and `); How to fix it? I writing now with a bluetooth keyboard.
All new keyboards need Snow Leopard 10.6.8 and above for full functionality.
Rather short-sighted of Apple perhaps, but that seems to be a trend these days.
I'm afraid the only fix is to upgrade to SL. Personaly, I'd take it back and get a refund and seek an older keyboard or a third-party one elsewhere. -
How do I turn off the feature that allows the duplication of App downloads to more than one phone? As in my wife downloads an app and I get a dulpicate download on my phone.
To disable that feature it will depend on whether or not you sync everything in the cloud using Apple's iCloud, OR if you both use the same desktop/laptop computer with iTunes. Here is a link to the Apple support page in regards to the automatic download feature included with your iPhone and corresponding softwares such as iTunes.
http://support.apple.com/kb/ht4539
Follow those instructions and it will all be taken care of. -
How do you get Itunes to go to the free radio station list, I'm not talking about the one that lists the price next to the song that's playing, I'm talking about the one that gives you 50 diffrent genes to select from?
This forum is for questions from those managing sites on iTunes U, Apple's service for colleges and universities to post educational material in the iTunes Store. You'll be most likely to get help with this issue if you ask in the general iTunes forums.
But answering quickly, if you mean the streaming stations, click the Internet item:
If you don't see that item, checkmark "Internet Radio" in the General preferences in iTunes.
Regards. -
How can I remove the page number from the first page of the document that is the cover page?
How can I remove the page number from the first page of the document that is the cover page?
If you open the Pages panel, (Window>Pages) you will see thumbnails of your master pages and your document pages. In new documents, there is usually a master called A-Master and one called None. If you drag the thumbnail of the None master onto the thumbnail of a document page, it will apply that master to that page. Presumably, you have made your page numbers on A-Master, so this will usually do the trick. If you have elements on A-Master that you need on the first page, but just not the page number, you can duplicate A-Master (which, by default will give you B-Master, but you can change the names if you like) and remove the page number on the duplicate and apply that to the document page.
It might also be worth noting that you can apply master pages in the fly-out of the Pages panel. Go to the fly-out triangle and go down to Apply Master to Pages…, then select a master to apply and the range of pages (1-8 will give you all 8, 1, 3, 5, 7 will be the odds, 1-3, 4, 6-8 if you want continuous ranges and individual pages). -
How to insert a space-bar in the Muse CC master slide page property metadata
I'm using the latest version of Muse CC and need to know how to insert a space-bar in the master slide page property metadata page title suffix area
I found it. If anyone else has this problem press the shift and \ at the same time on a standard windows keyboard.
-
How can I backup the iPad to the non-C drive of the computer that runs the itune? I have already setup the library at a NAS and seems only media file are stored int he library. iPad backup still need to take use my C: drive that is running out of space
Windows - Change iPad default backup location
http://apple-ipad-tablet-help.blogspot.com/2010/07/change-ipad-default-backup-lo cation.html
Windows - Changing IPhone and iPad backup location
http://goodstuff2share.wordpress.com/2011/05/22/changing-iphone-and-ipad-backup- location/
Cheers, Tom -
The place that has the spot is about the size is about 2cm,it still works where the spot is. I haven't sat on my phone or hit it too hard, not that I remember. I noticed a while ago. Will it disappear? I can see the things that should be where the spot is eg it's on the keyboard and I can see the keys. Will this spread to the whole screen? How can u get rid of this?
If you own an iPhone that is ineligible for warranty service but is eligible for Out-of-Warranty (OOW) Service, Apple will service your iPhone for the Out-of-Warranty Service fee listed below.
iPhone model
Out-of-Warranty Service
iPhone 5s, iPhone 5c,
iPhone 5
$269
iPhone 4s
$199
iPhone 4, iPhone 3GS,
iPhone 3G, Original iPhone
$149
A $6.95 shipping fee will be added if service is arranged through Apple and requires shipping. All fees are in U.S. dollars and are subject to local tax. -
whenever i click on word or powerpoint it always brings up a recent document. I want to have the option like when i had first opened the app that gives the options of new document and the variety of different documents. how do i get it back to that?
tbreezy wrote:
THANK U!! K ONE MORE QUICK QUESTION. HOW DO I GET RID OF THAT POP UP BOX?
Not sure, try googling "the global template normal.dotm is already open as an add-in program" -
Numbers: how do I turn on the feature that fills the cell with typing. In the previous versions, I could type a name or word and then a list of names/words with the same letters would appear. I could choose the name/word to enter into the cell. This saved many strokes. If I was typing a word with only one like it previously entered, that word would appear, grayed, and I could simply tab to the next cell, automatically entering that word in that cell. Is this feature in this version of Numbers? The autofill tab 1)I can't turn it on and 2) it doesn't seem to do the same thing.
Thanks.The developers failed to propagate that feature from version 2 to version 3. I believe it is on the short list of things to be restored in May 2014 or so.
Here's the full list as published by Apple:
Numbers
Customize toolbar
Improvements to zoom and window placement
Multi-column and range sort
Auto-complete text in cells
Page headers and footers
Improvements to AppleScript support
Jerry -
How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. This occurs in the internet explorer and chrome browse but not in foxfire
How to fix problem of bypassing the submit button validation by pressing the space bar in the required fields. This occurs in the internet explorer and chrome browse but not in foxfire
-
I HAVE TO INSTALL A PRODUCT CALLED "KUDANI AIR " . FAILURE TO DO SO IS BASED ON ADOBE AIR , SO I AM TOLD . HOW CAN I MAKE SURE THAT IS THE CASE ?? HOW CAN I SOLVE THE PROBLEM IF THIS IS THE CASE ??
if you try to install an app that depends on adobe air, you should be prompted to download and install adobe air (unless it's already installed).
you can download and install directly so you're not prompted by that app, Adobe - Adobe AIR -
I have purchased two movies on the store that at the time were unable to download, due to a full start up disc. I have now freed up the space and the remainder of the movies won't download. It gives me the error code 8003. I have a good network connection and the space for the movies, but cant seem to get it to work. Anysuggestions? It doesnt even let me delete the downloads and start again.
1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
tt2 -
Which language is better to develop the software that controls the Tektronix-Sony 370A Curve tracer and how to approach it. I a a fresher in this field. Please any one help us developing the software.
If you're looking to develop a driver for the instrument, one already exists and can be download here or you can get it off of the driver disk that comes with LabVIEW. If you're asking for the best language in which to write an application program that uses the driver, the obviously the answer is going to be LabVIEW. Note that you might get a different answer if you post the question to a Visual Basic or C++ forum but those answers would be wrong.
Message Edited by Support on 11-26-2008 01:33 PM
Message Edited by Support on 02-17-2009 09:30 AM
Maybe you are looking for
-
My IPad will not see my iTunes library, but iTunes syncs the iPad across my LAN. Remote will not see the same but Sonos does. All was ok, but since 5 it will not work, any one else having the same issue. Home sharing on etc.
-
Erased Hard Drive for Clean Install of Leopard, Hard drive is gone!
I put in my Leopard Install disk to do a clean install of everything as I was going to give this iMac to someone. I erased the hard drive and then started the Leopard install. It stopped half way through and that was that! Now the hard drive does not
-
How to transfer data between planning functions in BPS
Hi All, I have requirement, where user will enter the sales qty plan in manual planning function and need to read the zinfo object to distribute the sales qty accordingly to manufacturing plant and push into infocube. To fulfill above requirement, i'
-
hi all i have an .xsl file to be imported into the mapping of the importedarchive. when i am trying to import the system raises an error saying only .jar files and .zip files can be imported. how do i import my.xsl file thanks
-
Unknown error in the prescript code( Extension Collection)
Hello Export , Kindly need help to solve the below error which is coming in the below code(part of the prescript code is given below) import com.frictionless.api.common.exception.*; import com.frictionless.api.common.log.Logger; import com.frictionle