www.webdeveloper.com
Results 1 to 4 of 4

Thread: How to have results posted vertically and not horizontally with commas in between

  1. #1
    Join Date
    May 2011
    Posts
    2

    Exclamation How to have results posted vertically and not horizontally with commas in between

    Hi so just a simple questions maybe someone can help me out. I know nothing about java first of all but i do know in this code how to get rid of the comma - the only thing i need to change is to make it paste email results vertically instead of horizontally because it helps me collect emails from some older emails i have

    here is the code and the link for the code:

    http://javascript.internet.com/forms/extract-email.html
    Code:
    <!-- TWO STEPS TO INSTALL EXTRACT EMAIL ADDRESSES:
    
      1.  Copy the coding into the HEAD of your HTML document
      2.  Add the last code into the BODY of your HTML document  -->
    
    <!-- STEP ONE: Paste this code into the HEAD of your HTML document  -->
    
    <HEAD>
    
    <SCRIPT LANGUAGE="JavaScript">
    <!-- Original:  Ronnie T. Moore, Editor -->
    
    <!-- This script and many more are available free online at -->
    <!-- The JavaScript Source!! http://javascript.internet.com -->
    
    <!-- Begin
    function findEmailAddresses(StrObj) {
    var separateEmailsBy = ", ";
    var email = "<none>"; // if no match, use this
    var emailsArray = StrObj.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
    if (emailsArray) {
    email = "";
    for (var i = 0; i < emailsArray.length; i++) {
    if (i != 0) email += separateEmailsBy;
    email += emailsArray[i];
          }
       }
    return email;
    }
    //  End -->
    </script>
    </HEAD>
    
    <!-- STEP TWO: Copy this code into the BODY of your HTML document  -->
    
    <BODY>
    
    <center>
    <form>
    <textarea name=comments rows=10 cols=50 onBlur="this.form.email.value=findEmailAddresses(this.value);"></textarea>
    <br>
    Email:  <input type=text name=email>
    </form>
    </center>
    
    <p><center>
    <font face="arial, helvetica" size="-2">Free JavaScripts provided<br>
    by <a href="http://javascriptsource.com">The JavaScript Source</a></font>
    </center><p>
    
    <!-- Script Size:  1.19 KB -->




    if someone can help me just change this to paste results vertically instead of horizontally that would be wonderful! thank you!

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by rbercovi View Post
    Hi so just a simple questions maybe someone can help me out. I know nothing about java first of all
    Indeed you know nothing. This is a JavaScript code, not a Java code. Different languages.
    So, go and learn some JavaScript, at least enough to understand what is going on. We can not supply your lack of knowledge.

  3. #3
    Join Date
    May 2011
    Posts
    2
    thanks for nothin

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by rbercovi View Post
    thanks for nothin
    Nothing you offer, nothing you get.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles