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 6 of 6
  1. #1
    New Coder
    Join Date
    Oct 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts

    assume that dalia[i].email is known

    "<a href='dalia[i].email'>'dalia[i].email'</a>"

    whats wrong with the sentence
    basically, i want to have a working clicking link to dalia[i].email come out to be whatever email is at instance i in array dalia

  • #2
    Senior Coder BarrMan's Avatar
    Join Date
    Feb 2005
    Location
    Israel.
    Posts
    1,644
    Thanks
    69
    Thanked 83 Times in 82 Posts
    add javascript: before the javascript codes inside the <a> tag.
    Code:
    <a href="javascript: dalia[i].email"><script>dalia[i].email</script></a>
    Also, I'm almost convinced that it won't work unless you built it in classes.

  • #3
    New to the CF scene
    Join Date
    Oct 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    looks like you might have a script kicking this out... maybe you need
    Code:
    "<a href="\"+dalia[i].email+"\">"+dalia[i].email+"</a>"
    ??

  • #4
    New Coder
    Join Date
    Oct 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    cenze;
    yours is returning

    NaNsuco@mail.farga.edu

    suco is what i put in for the email

  • #5
    New Coder
    Join Date
    Oct 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    except i only want suco...not NaN

  • #6
    New Coder
    Join Date
    Oct 2006
    Posts
    32
    Thanks
    0
    Thanked 0 Times in 0 Posts
    nvm got it, correct syntax was

    "<a href=/"+dalia[i].email+"/>"+dalia[i].email+"</a>"


  •  

    Posting Permissions

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