Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 13 of 13
  1. #1
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Code does not work

    <script language="JavaScript"><!--
    var name = "protected";
    var domain = "cdrsoft.com";
    document.write('<a href=\"mailto:' + name + '@' + domain + '\">');
    document.write(name + '@' + domain + '</a>');
    // --></script>

    The above code is not working on my html on my weebly website. my email is mychildrenaremylife@gmail.com What am I doing wrong? Can someone tell me how it should work?

  • #2
    Senior Coder
    Join Date
    Jan 2005
    Location
    Memphis, TN
    Posts
    1,788
    Thanks
    8
    Thanked 131 Times in 129 Posts
    try a little simplier version?
    Code:
    <script type="text/javascript">
    emailE=('name@' + 'domain.com') 
    document.write('<A href="mailto:' + emailE + '">' + emailE + '<\/a>')
    </script>
    Stop making things so hard on yourself.
    i is tugbucket :: help raise tugburg :: Whitehaven Kiwanis

  • #3
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by ExoticbyDesign View Post
    The above code is not working on my html on my weebly website. my email is mychildrenaremylife@gmail.com
    *sigh* See, there's very little point in hiding your email if you're just going to post it on a popular site. Slight lack of thinking things through?

    A List Apart (as always) has a brilliant article on this.

  • #4
    Regular Coder
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    249
    Thanks
    11
    Thanked 13 Times in 13 Posts
    some people like me dont use an email client in windows, so clicking a mailto link doesnt do anything for me, i have to copy the email addy to gmail to use it.

    You could always use a contact form ( not trying to post all the time about my contact form, just trying to help people)

    http://www.owt200x.us/contactform

  • #5
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by CyanLight View Post
    *sigh* See, there's very little point in hiding your email if you're just going to post it on a popular site. Slight lack of thinking things through?

    A List Apart (as always) has a brilliant article on this.

    Sigh....it's a site for parents of the elementary my children go to and it has to be there so people can email me forms and etc to put on the site for parents to down load. No at 50 years old, I think very well thank you. It is an email account that I don't care if junk goes to because it isn't my main one. I was looking for a code to make a clickable link, ran across that code on here and thought well... that might stop some. If it doesn't big flipping deal. But thanks for the concern about my mental capacity.

  • #6
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by owt200x View Post
    some people like me dont use an email client in windows, so clicking a mailto link doesnt do anything for me, i have to copy the email addy to gmail to use it.

    You could always use a contact form ( not trying to post all the time about my contact form, just trying to help people)

    http://www.owt200x.us/contactform
    I already have that, great minds think alike. BUT read my response above...that will only work for people giving me other ideas. Kind of hard to sent a jpg or word document that way.


    But if there is a simpler email html that people can click, I am open to that. Though I will try the one above.

  • #7
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy

    Quote Originally Posted by harbingerOTV View Post
    try a little simplier version?
    Code:
    <script type="text/javascript">
    emailE=('name@' + 'domain.com') 
    document.write('<A href="mailto:' + emailE + '">' + emailE + '<\/a>')
    </script>
    Nope, maybe I am not filling it out right. I am computer illiterate.

    see email above and here is the site

    http://eeknightforparents.weebly.com/

    Sigh....I admire people that can do this coding. Any help is appreciated. thanks

  • #8
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I checked the source of your page. This is what is in there
    Code:
    <script type="click here/javascript">
    emailE=('thiswasyouremail@domain.com') 
    document.write('<A href="mailto:' thiswasyouremail@domain.com '">' click here '<\/a>')
    </script>
    That "click here" part is stopping anything from working. And yes you are doing it wrong. Using harbinger's solution
    Code:
    <script type="text/javascript">
    emailE=('mychildrenaremylife@' + 'gmail.com') 
    document.write('<A href="mailto:' + emailE + '">' + emailE + '<\/a>')
    </script>
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #9
    Regular Coder
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    249
    Thanks
    11
    Thanked 13 Times in 13 Posts
    i could always modify my contact form to include a file upload option, or multiple upload options. If you want me to let me know, if you need it to look like your website, send me your html template so i can add form into it
    Last edited by owt200x; 11-13-2008 at 07:27 AM.

  • #10
    New to the CF scene
    Join Date
    Nov 2008
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Thank you everyone

    But the school has decided that easier for parents is not important so I deleted it. Thank you for all the suggestions and offers. And yes that would have been a great thing to be able to do that uploads from your form...O... thanks

  • #11
    Regular Coder Doctor_Varney's Avatar
    Join Date
    Mar 2008
    Location
    Midlands, UK
    Posts
    649
    Thanks
    45
    Thanked 29 Times in 28 Posts
    Quote Originally Posted by CyanLight View Post
    *sigh* See, there's very little point in hiding your email if you're just going to post it on a popular site. Slight lack of thinking things through?
    The cynic...

    I generally find scepticism a more attractive position.
    Last edited by Doctor_Varney; 11-14-2008 at 01:37 AM.
    Definition: Computer rage is a heightened physiological response with associated feelings of anger and frustration[1] resulting from using a computer or other complex electronic device. It may result in the physical assault of the computer or similar item.[2] Computer use often leads to verbal abuse and occasionally physical violence towards the object.[3] Computer rage may be caused by distress due to a hardware or software problem which the enraged person is unable to correct.

  • #12
    Regular Coder
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    249
    Thanks
    11
    Thanked 13 Times in 13 Posts
    so are you wanting me to customize my contact form for you with file upload?

  • #13
    Regular Coder
    Join Date
    Sep 2008
    Location
    Oklahoma
    Posts
    249
    Thanks
    11
    Thanked 13 Times in 13 Posts
    my email address is barrym@owt200x.us


  •  

    Posting Permissions

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