Give help. Get help.
I’m working on a plugin for my company’s site. They have address on their site that go to outlook when clicked. I have my plugin concept I just need to grab the email from the link is clicked.
It’s not super practical, but it separates the name from the extension to prevent bots from reading it.
I’m not trying to protect the email address I want to grab it from the href:
//get the email link from the href
//open new windows with the email link sent via an address (i have this part figured out)
What i’m trying to do now is get the email link:
<a href="mailto: email@example.com">email me</a>
I want to pull out the "firstname.lastname@example.org". I will never know what the email address is going to be so i cant search for a specific email either.
Look like i need to get the enter href (mailto: email@example.com) then remove the mailto: part. Once i have that I can send it to a php driven form using http://firstname.lastname@example.org.
If your using jQuery then grab the attribute
I just got that part about 10min ago. Now i’m trying to to figure out how to strip the "mailto: " from it:
this is my test to see when i get the url whittled down to just the email address. so far it shows "mailto: email@example.com"
url = url.replace(/mailto: /, ”);
figured it out after hammering away. Thats basically how I did it. I used replace to locate the mailto: and replace it with ""
thats nice!! thanks a lot.. :mrgreen: resell rights
You must be logged in to reply to this topic.