• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

email address

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Friends
I am getting the Email validation probelm
i have give n like this in the text area
"[email protected]" it is giving the error
like this
"[email protected]& #34;
It should not give the ascii charecters pls help me out.this is the code for that..i need to enter the emails in the text area
for( var i = 0; i < vEmailsToAdd.size(); i++ )
{

//if( currentEmails.toLowerCase().indexOf( vEmailsToAdd.elementAt( i ).toLowerCase() ) == -1 )
if(!vectorOfEmails.contains(vEmailsToAdd.elementAt( i ).toLowerCase()))
{
// The email address it NOT there already. Add it:
if( currentEmails != "" )
{
// The textarea is NOT empty.
if( currentEmails.charAt( currentEmails.length-1 ) == "," )
{
// The last char is a <comma>, so add a space and the email address
currentEmails += " " + vEmailsToAdd.elementAt( i );
}
else
{
// The last char is not a <comma>, so add the <comma>+<space>+ email here
currentEmails += ", " + vEmailsToAdd.elementAt( i );
}
}
else
{
// The textarea is empty. Just put the first address in it.
currentEmails = vEmailsToAdd.elementAt( i );
}
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic