• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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
"advsndsadsdbvsdv@yahoo.com" it is giving the error
like this
"advsndsadsdbvsdv@yahoo.com& #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 );
}
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic