I've been trying to get a mailto to create an email with a section name in the subject line with this example...
The problem is that a lot of the section names have a space in them and so the subject line cuts off at that point, e.g. the subject line "Enquiry about the Golden Glow range" only gets as far as "Enquiry about the Golden" .
Does anyone know of a way of replacing the spaces in section names with %20 in the script?
Malcolm
Code:
<script language="javascript"> <!-- var contact = "click here" var email = "office" var emailName = "artinet" var emailTLD = ".co.uk" document.write("<a href=" + "mail" + "to:" + email + "@" + emailName + emailTLD + "?Subject=Enquiry%20about%20the%20<actinic:variable name="SectionName" />%20range" + ">"Click here to enquire about this range."</a>") //--> </script>
Does anyone know of a way of replacing the spaces in section names with %20 in the script?
Malcolm
Comment