Validate Email address

 

Checking Email 


Web sites often use email addresses as usernames because they are guaranteed to be unique, as long as they are valid. In addition, the organizations can use the email addresses to communicate with their users later. You do not have to initiate a server round trip just to validate an email address, however. This task can be initiated in the client, which cancels the submission of the username to the server if the email syntax is invalid.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head> <script type="text/javascript" src="js/http_request.js"></script> 
<script type="text/javascript" src="js/email.js"></script>
 <meta http-equiv="content-type" content="text/html; charset=utf-8"> 
<title>Enter email</title>
 </head> <body> 
<form action="javascript:void%200">
 <div id="message"></div>
 Enter email: <input type="text" name="email" size="25"> 
<br /> <button type="submit" name="submit" value="Send">Send</button>
 </form> </body> </html>



This function creates a new Email object, validates the user's email address,
 and, if it's valid, submits it to a server component.
Let's take a closer look at the checkAddress( ) function:
function checkAddress(val){
    var eml = new Email(val);
    var url;
    eml.validate(  );
    if (! eml.valid) {eMsg(eml.message,"red")};
    if(eml.valid)
    {
        url="http://www.parkerriver.com/s/checker?email="+
            encodeURIComponent(val);
        httpRequest("GET",url,true,handleResponse);
    }
}



var user,domain, regex, _match;

window.onload=function(  ){
    document.forms[0].onsubmit=function(  ) {
        checkAddress(this.email.value);
        return false;
    };
};
/* Define an Email constructor */
function Email(e){
    this.emailAddr=e;
    this.message="";
    this.valid=false;
}

function validate(  ){
    //do a basic check for null, zero-length string, ".", "@",
    //and the absence of spaces
    if (this.emailAddr == null || this.emailAddr.length == 0 ||
    this.emailAddr.indexOf(".") == -1 ||
    this.emailAddr.indexOf("@") == -1 ||
    this.emailAddr.indexOf(" ") != -1){
    this.message="Make sure the email address does " +
    "not contain any spaces "+
    "and is otherwise valid (e.g., contains the \\"commercial at\\" @ sign).";
        this.valid=false;
        return;
    }

    /* The local part cannot begin or end with a "."
    Regular expression specifies: the group of characters before the @    
    symbol must be made up of at least two word characters, followed by zero   
    or one period char, followed by at least 2 word characters. */
    regex=/(^\\w{2,}\\.?\\w{2,})@/;
    _match = regex.exec(this.emailAddr);

    if ( _match){
        user=RegExp.$1;
        //alert("user: "+user);
    } else {
       this.message="Make sure the user name is more than two characters, "+
            "does not begin or end with a period (.), or is not otherwise "+
            "invalid!";
        this.valid=false;
        return;
    }
    //get the domain after the @ char
    //first take care of domain literals like @[19.25.0.1], however rare
    regex=/@(\\[\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}.\\d{1,3}\\])$/;
    _match = regex.exec(this.emailAddr);

    if( _match){
        domain=RegExp.$1;
        this.valid=true;
    } else {
/* The @ character followed by at least two chars that are not a period (.),
followed by a period, followed by zero or one instances of two or more
characters ending with a period, followed by two-three chars that are 
not periods */
        regex=/@(\\w{2,}\\.(\\w{2,}\\.)?[a-zA-Z]{2,3})$/;
        _match = regex.exec(this.emailAddr);
        if( _match){
            domain=RegExp.$1;
           //alert("domain: "+domain);
        } else {
            this.message="The domain portion of the email had less than 2 
                         chars "+
                         "or was otherwise invalid!";
            this.valid=false;
            return;
        }
    }//end domain check
    this.valid=true;

}

//make validate(  ) an instance method of the Email object
Email.prototype.validate=validate;

function eMsg(msg,sColor){
    var div = document.getElementById("message");
    div.style.color=sColor;
    div.style.fontSize="0.9em";
    //remove old messages
    if(div.hasChildNodes(  )){
        div.removeChild(div.firstChild);
    }
    div.appendChild(document.createTextNode(msg));

}
//a pull-it-all-together function
function checkAddress(val){
    var eml = new Email(val);
    var url;
    eml.validate(  );
    if (! eml.valid) {eMsg(eml.message,"red")};
    if(eml.valid)
    {
        //www.parkerriver.com
        url="http://www.parkerriver.com/s/checker?email="+
            encodeURIComponent(val);
        httpRequest("GET",url,true,handleResponse);
    }
}
//event handler for XMLHttpRequest
//see Hack #24
function handleResponse(  ){
    //snipped...
}

First, the code sets up the handling for the user's click on the Send button. window.onload specifies an event handler that is called when the browser completes the loading of the web page:
window.onload=function(  ){
    document.forms[0].onsubmit=function(  ) {
        checkAddress(this.email.value);
        return false;
    };
};

Validate a Text Field


No web developers want their Ajax applications to hit the network with requests if the users leave necessary text fields blank. Thus, checking that input elements of type text and the large boxes called textareas in HTML contain values is one of the most common forms of validation.
This hack shows the code for checking if a text control is blank. The inline way of doing this is by assigning a check for the field's value in the text field's event handler:
 
<input type="text" name="firstname" id="tfield" onblur=
"if (this.value) {doSomething(  );}" />

or in the textarea's event handler:
<textarea name="tarea" rows="20" id="question" cols="20" onblur=
"if (this.value) {doSomething(  );}">

The JavaScript phrase if (this.value) {...} returns false if the user leaves a field blank, so the function call doSomething( ) will never occur. JavaScript evaluates a blank web-form text field as the empty string or "", which evaluates to false when it's used in the context of a programming test. The this keyword is a nice generic way of referring to the form field that contains the event handler attribute.

Probably a better way of going about your event-handling tasks is to separate the logic of your code from the HTML or template text that comprises the application's visual aspects. The JavaScript goes into an external file that the HTML page imports with a script tag. Inside the external file, the code binds a field's various event handlers to a function or the code that represents your application's behavior.
Let's take the following web page, myapp.html, which includes the following HTML in its header:
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="js/hacks_method.js"></script>
    <title>Cool Ajax application</title>
</head>

The file hacks_method.js is located in a directory js, which is in the same directory as the HTML file. The HTML file contains the same textarea and text field as mentioned earlier, except these fields no longer have an onblur attribute. The JavaScript file includes this code:
 
window.onload=function(  ){
    var txtA = document.getElementById("tarea");
    if(txtA != null){
        txtA.onblur=function(  ){
            if (this.value) { doSomething(  );}
        };
    }
    var tfd = document.getElementById("tfield");
    /* An alternative:
    if(tfd != null && txtA != null){tfd.onblur = txtA.onblur; }
    */
    if(tfd != null){
        tfd.onblur=function(  ){
            if (this.value) { doSomething(  );}
        };
    }
}

window.onload involves the binding of the load event to your blank-field checks. load occurs when the browser has completed loading the web page, so when that happens, all the stuff after window.onload= follows.
The getElementById( ) method returns a reference to an HTML element

Self Seo


 Self Seo Tips And Seo Tutorial

seo marketing plan Free seo Analysis Tools Mobile seo Checklist seo algorithm seo Success Factors seo marketing news seo Directory seo Spamming seo marketing youtube seo
http://seo-tips-tech.blogspot.com/2014/02/self-seo-tips-and-seo-tutorial.html

  video blogging is important for SEO
Website Success Metrics Seo Top 10 Tips for Optimizing CSS Seo Image Seo Lead paragraph Seo 5 reasons why video blogging is great for Seo and ... Benefits of long-tail Seo long-tail Seo terms to increase website traffic
http://seo-tips-tech.blogspot.com/2012/11/video-blogging-is-important-for-seo.html

  Free SEO Analysis Tools
top 50 best and top Rank forum sites list usa india uk seo 2013 top 50 best and top Rank forum sites list usa india uk seo 2013 List of Top  Rank Educational forums Websites,seo forums,tutorial Foru... How register the
http://seo-tips-tech.blogspot.com/2013/09/free-seo-analysis-tools.html

  how to promote classfied site in seo
top 50 best and top Rank forum sites list usa india uk seo 2013 top 50 best and top Rank forum sites list usa india uk seo 2013 List of Top  Rank Educational forums Websites,seo forums,tutorial Foru... How register the
http://seo-tips-tech.blogspot.com/2013/09/how-to-promote-classfied-site-in-seo.html

seo marketing - strategies-tips ~ PHP-MySQL interview questions,seo intervie...

Self Seo Tips And Seo Tutorial Seo marketing plan Free Seo Analysis Tools Mobile Seo Checklist Seo algorithm Seo Success Factors Seo marketing news Seo
http://seo-tips-tech.blogspot.com/2014/05/seo-marketing-strategies-tips.html

Small business SEO and SEM strategy ~ PHP-MySQL interview questions,SEO inte...

SMO is Effective for SEO Internet Marketing for B2B and B2C Marketing Web-Site Content Affect SEO Creating outbound links-SEO Tips Major online directories Need Of SEO SEO tips-Adding Your Links Everywhere Ranking
http://seo-tips-tech.blogspot.com/2013/07/small-business-seo-and-sem-strategy.html

Jobs-at Footwear Design & Development Institute

Footwear Design & Development Instituteinvites applications for the following
 academic posts for its various posts

  1. Sr. Faculty /Faculty /Associate Faculty-FOOTWEAR Technology : 10 posts
  2. Consultant/Sr Faculty/Faculty /Associate Faculty-Fashion Design  : 15 posts
  3. Sr. Faculty/Faculty /Associate Faculty-For Footwear- PDC (CAD/CAM) : 04 posts
  4. Sr. Faculty –LGAD : 05 posts
  5. Sr. Faculty/ Faculty-Retail : 10 posts
  6. Faculty /Associate Faculty-Business Management : 12 posts
  7. Demonstrator : 05 posts
  8. Craftsman –(Fashion Design) : 10 posts
  9. Technologist : 02 posts
  10. Lab Analyst : 02 posts
How to Apply : Interested candidates may apply in the applicable format to: The Manager (Admin. & Pers.), Footwear Design & Development Institute , (Ministry of Commerce & Industry, Government of India), A - 10/A, Sector - 24, NOIDA - 201301.

For Details: http://www.fddiindia.com/jobs-new/jobs_index.html

Job at POWER GRID CORPORATION OF INDIA LTD.


  • Dy. Manager (Electrical) / E4 : 05 posts (UR-3, OBC-2), Pay Scale : Rs. 32900 - 58000
  • Sr. Engineer (Electrical) / E3 : 10 posts (UR-7, OBC-1, SC-2, PWD-1),  Pay Scale : Rs. 29100 - 54500
Application Fee :  Rs. 400/-  to be paid in form of A/c Payee Demand Draft in favour of “POWER GRID CORPORATION OF INDIA LTD” Payable at New Delhi (Preferably drawn on State Bank of Hyderabad). SC/ ST/ PwD / Ex-SM candidates are exempted from the above mentioned application fee.

Apply Online : Apply Online from 31/05/2014 to 27/06/2014 at Power Grid Website only. Application in the prescribed format should be send to The Advertiser (PG), Post Box No. 9248, Krishna Nagar Head Post Office, Delhi - 110051 on or before 11/07/2014.  

details:- http://www.powergridindia.com/_layouts/PowerGrid/User/ContentPage.aspx?PId=166&LangID=English 

Junior Research Fellow-Post-at Calcutta University

 Junior Research Fellow-Post-at Calcutta University

Interested eligible candidates are requested to appear before a selection committee on 23rd May, 2014 at 11 AM. in the Conference Room of the Department of Biochemistry, University of Calcutta Ballygunge Campus, 35, Ballygunge Circular Road, Kolkata: 700019 for recruitment of One Junior Research Fellow (1 JRF) in the in an IndoFrench collaborative project entitled “Decipher the symbiotic program in tropical legume” (SAN.NO.-IFC/5103/-4/2014/543) under Dr. Maitrayee DasGupta. Tenure of the project is up to April, 2017

Qualification required: M.Sc. Degree in any discipline in life sciences from any recognized board/University with valid GATE/ NET

Upper age limit is 28 years on 1st June, 2014 with 5 years relaxation for SC/ST/Female candidates
Remuneration:
For JRF 16,000+30%HRA Per month

iPhone 6 caught running iOS 7

Images have leaked over in China showing a device running on iOS 7 that is said
 to be an Apple iPhone 6. As there's no video material of the device there's no way
of telling if it's a real device and not a dummy but the icons on the screen appear to
 have been reordered at least. There are a couple of things about the device that
 strike us as odd, though. For starters it appears to be entirely made out of plastic,
which isn't what Apple usually does for its flagship iPhone not until the 3GS, anyway.

So this might be another c version - as in the iPhone 5c. Second there's a silver frame
 around the phone's front that looks similar to what Samsung used in devices like the
 Galaxy S II and seems unlikely to be featured in an Apple flagship. At least the flash
 on the back looks in line with Apple's current two-toned flash on the iPhone 5s.

A casing that leaked today shows a single LED flash placeholder, just like dummies
 we've seen before on a few occasions, including a video.

Samsung Galaxy S5 mini

The smartphone looks very similar to a Samsung Galaxy S5, using the same
 dotted back panel, a heart-rate monitor under the camera lens and even the
 water-repelling rubber padding underneath the back panel.

There even looks to be a fingerprint scanner under the home button.
 Looking at the back panel it appears to cover more of edge of the phone
 compared to the Galaxy S5 and the battery is smaller, which adds some
 credence to the info that it's a mini version. While the images can be an
 elaborate hoax it seems perfectly believable for Samsung to release a
mini that so closely resembles the bigger version.
And now that the Samsung Galaxy K Zoom has been official since last month
and the Galaxy S5 Active is official since today we're pretty sure this one is coming shortly.
 Samsung Galaxy S5 mini (click to expand) We've heard about it
having a 4.5" display of 720p resolution along with an 8 MP camera, IP67
certification and a heart-rate monitor. We've even seen official support pages.

 The device in the images doesn't appear to have a flap cover on top of its microUSB port, which puts a question mark on the water resistance claims. According to the source, the Galaxy S5 mini will not have a Snapdragon 400 but rather a new

eCommerce-Designing the Products and Services pages

Websites have become the go-to medium for casual information gathering. Google,
Wikipedia, Technorati, and other massive information harvesters offer the world
nearinfinite information at near-instant speeds. When people hear about a company, they type
in the URL. Because of this, providing as much information about the business and its
offerings is a critical ingredient in successful websites and marketing in general—when
content is available, people will consume it.

Few sections benefit more from building content than the products or services. Not only
does it inform the audience, which is very likely the customer base, but it presents an ideal
marketing platform and selling opportunity. If people are already on your site, why not
push them into action?

The Products and Services pages should be built with a selling path in mind. A selling path
is an easily followed, short series of actions that leads people to initiate the sales process.

Ideally, this should be three tangible steps:
1.Landing page: People will find the products or services landing page, be enamored
with all the wondrous things the company manufactures, sells, or consults about,
and click on an item for deeper exploration.
2.Individual description: Prospects will find themselves on a singular page that
describes in no uncertain detail all of the salient selling points of the product or
service. This page guides them toward the final stage of the selling path: the sales
process.

3.Acquisition: After readers consume everything about the product or service that
catches their eye, they will effortlessly find themselves on a page that politely asks
them to finish what they started, either by making a purchase or becoming a qualified
 lead by making contact with the company.

Products that can be sold on the Web: Just about anything that can be shipped and
delivered cost-effectively can be sold via an online shopping cart, from fruit
baskets to furniture to cars. These products do not need the help of a sales force.
Customers can make a purchase online without interacting with the company.

SEO Terms You Should Know

SEO Performance Optimized
| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
 
dynamic seo

dynamic seo 10:36 SEM , seo dynamic seo Dynamic web services inc is a leading search engine marketing company providing natural search engine optimization (seo) our methodical seo consists of many
http://seo-tips-tech.blogspot.com/2013/11/dynamic-seo.html
Internet marketing

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2012/12/internet-marketing.html
Root Domains, Subdomains, and Microsites

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/03/root-domains-subdomains-and-microsites.html

web seo-tip-for image-Picasa Photo Feed

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/09/web-seo-tip-for-image-picasa-photo-feed.html

MARKETING YOUR SITE AND TRACK VISITORS

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/09/marketing-your-site-and-track-visitors.html  
  Site Indexation Tool

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/06/site-indexation-tool.html

Web analytics provider- Reach Customers

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/08/web-analytics-provider-reach-customers.html

Top Google SEO Tips Video Surpasses 5000 Views

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/02/top-google-seo-tips-video-surpasses.html

SEO fanda-The nofollow Link Attribute

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/07/seo-fanda-nofollow-link-attribute.html

SEO Pitfalls

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/12/seo-pitfalls.html
SEO Success Factors

it is a known fact that seo is too. Social media seo ranking factors 2012 - slideshare seo ranking factors that have the strongest effect on google or other search engine rankings hidden truths revealed. seo ranking factors off page seo factor
http://seo-tips-tech.blogspot.com/2013/11/seo-success-factors.html
  Ranking Fluctuations-SEO

SMO is Effective for SEO Internet Marketing for B2B and B2C Marketing Web-Site Content Affect SEO Creating outbound links-SEO Tips Major online directories Need Of SEO SEO tips-Adding Your Links Everywhere Ranking
http://seo-tips-tech.blogspot.com/2013/07/ranking-fluctuations-seo.html

SEO Research and Analysis 

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2012/10/seo-research-and-analysis.html
  SEO For Dynamically Generated Sites

generated sites web, seo optional search engine optimized seo page links. smo is effective for seo creating outbound links seo tips seo keyword tuning with ppc testing top 10 e-commerce seo tips tips for optimizing css seo research
http://seo-tips-tech.blogspot.com/2013/12/seo-for-dynamically-generated-sites.html

SEO Keyword Tuning with PPC Testing

SMO is Effective for SEO Internet Marketing for B2B and B2C Marketing Web-Site Content Affect SEO Creating outbound links-SEO Tips Major online directories Need Of SEO SEO tips-Adding Your Links Everywhere Ranking
http://seo-tips-tech.blogspot.com/2013/07/seo-keyword-tuning-with-ppc-testing.html

Seo Articles Targeted Clients

Advanced Techniques for SEO SEO Articles Targeted Clients SEO Fuel SEO Directories Traffic to Your Site SEO Internet Marketing & Good Content Create SEO Friendly URLs SEO Tutorials On-page SEO and Off-page Free
http://seo-tips-tech.blogspot.com/2012/07/seo-articles-targeted-clients.html
  SEO Spamming

Home » SEM , SEO » SEO Spamming SEO Spamming 23:59 Tweet SEO Spamming SEO spamming word to the wise SEO spam any attempt at SEO that goes beyond legitimate
http://seo-tips-tech.blogspot.com/2013/11/seo-spamming.html

seo marketing youtube

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/10/seo-marketing-youtube.html
seo marketing news

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/10/seo-marketing-news.htm

Mobile Seo Checklist

search engine optimization seo and what factors they can control. Checklist for seo web seo services get a custom-tailored seo site audit to get a checklist of action items to better optimize your website get tips for technical seo, on-page seo
http://seo-tips-tech.blogspot.com/2013/11/mobile-seo-checklist.html

SEO Companies United States

| query strings help seo | optimize ranking website | top directories submission | seo companies india | seo companies united states | seo companies newyork |php job opening in kolkata | Offline Marketing Tips | seo tips for google
http://seo-tips-tech.blogspot.com/2013/01/seo-companies-united-states.html