Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Javascript error when using mailtoJavascript error when using mailto
Previous
 
Next
New Post
12/20/2009 5:38 PM
 

Hi DNN 

I have a simple HTML module added to my site and made a link using the 'tool' for adding links.

The problem is that the link fails when you click on it (I'm using EI)

The html code looks like this : 
<a href=" void(location.href='mailto:'+String.fromCharCode(105,116,115,112,64,105,116,115,112,46,100,107,59,115,117,112,112,111,114,116,64,105,116,115,112,46,100,107)+'?subject=Kontakt%20mig%20venligst&amp;body=Navn%20%0D%0ATlf%20%0D%0AVedr.%20')">send a mail</a>

If I remove the Java parts, it works fine, but I guess there is a reason for using java to make the mail.. security I presume :O)

But can anyone help ? :o)

/Kenneth

The site is running latest version of DNN and on a MS 2008 Server..

 

 


Best regards /Kenneth Madsen
 
New Post
12/21/2009 4:38 AM
 

Hi Kenneth, the best way to include script like this is to use the onclick event, e.g. <a href="#" onclick="void(...)">. Otherwise the HTML editor has a habit of disabling out the javascript as a security measure. (Incidentally, the reason for using script here is to prevent the less sophisticated spambots from harvesting your email address from the page and offering you lots of products you never knew you needed ).

 
New Post
12/21/2009 2:31 PM
 

Ok, Mark

I understand that.. but I was wundering why DNN then create such a script... ? ;o)

/Kenneth


Best regards /Kenneth Madsen
 
New Post
2/4/2010 6:39 PM
 

I discoverd this today but it only seems to be issue with the Wiki and Forums.  HTML is working normal?  I am running 4.9.5.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Javascript error when using mailtoJavascript error when using mailto


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out