Jump to content

Archived

This topic is now archived and is closed to further replies.

jeomiland

Javascript code not working in Textbox?

Recommended Posts

jeomiland

I have been using the handy code at HiveLogic for years to create Javascript code that results in a "MailTo:emailAddr..." style link that webbots can't see, but humans do. Tried this in a Textbox section on a page where I also have a GravityForms form and the code does not seem to get rendered.

 

Here's the page (beware, actively being developed and actually just removed the code)

http://westcoastfacemasks.com/BLOG/facemasks-reconditioning-order-form/

 

Here's the code that was not showing in the box:

<p><script type="text/javascript">
//<![CDATA[
<!--
var x="function f(x,y){var i,o="",l=x.length;for(i=0;i<l;i++){if(i==64)y+=" +
"i;y%=127;o+=String.fromCharCode(x.charCodeAt(i)^(y++));}return o;}f("&4, 0" +
",))h/b3e68."q;177;htut66f$s2:�16�06�26�13Ht[�10�04R�35" +
"�03�05�01�13G�10_�21�33�25�075�30�34�34;�17T�21" +
"Q1rkbypvn3=8275er(j>xi9m*;8.84u;v�33�34�37�05�13�27N�16U�05" +
"GZW�04PR@J�33^Yr�30SD�02U�37�25�37r@v+m,=zzl~~~c.`>bgqg" +
"ad?(5uw5&cy�10�03�13�20�20tz�05�33�36�27�07n�20M"+
"001�14a�04�02�04ij�36c�17�10�13`a�16rp�35�36rwu�3" +
"2�33zzz�27�20~|177�14r�07`gen�13oij�07�00�17llP=>PV" +
"U:;^YZ70_^_,-!=CCGH%&JLM"723XY568UV;<=RST%##HI %(EFZ/,.C|�35" +
"025�22�23�26�26{tP�34�33�34qrKrnn�21hin�27KIHg`�0" +
"0�36�22#~bzl`�32e�24�25oo~}~�23�14fcs{)�34�31�015hhl�" +
"01�02�32PRR?87$;456,=:(_BA./64)=KHJ' .%ASUHI667TU=<=QRhsYW3|m! )EFhf1" +
"77{5Y]S�34GA[KIGCCB^[K[QD�25�05�21�04�05�10ef�05n�34�" +
"31Hc~dcmo"v{y�26�275hi|xfac�10ttfhi�06�07jnn�03<RPS89225" +
"*5,/X]_,-4,!7-9;6&YT�33�03;n"mvprbzt1"%&%v8O;z<aWr|vYi}u}1XtGGK" +
"fTF@jGD^K�00H^X@Gg�10�35X�03�16�10n�01�30G�04)|i:mvrzu " +
"b-%6gd{8i?h<mge0r)3;e7�24�06�14�06�10K�36Z�04E6I0OS�00"+
"030R�01�25�03r^�01U�02S�32]�20ohv`jp`%!",64)"               ;
while(x=eval(x));
//-->
//]]>
</script></p>

That code produces a simple mailto:myaddr...  with a default subject line and clickable text on a regular HTML page.

 

Any clues guys???

 

JE-0

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Can you add the code here - http://pastebin.com/ As it has lost its formatting.

 

Then reply here with the link.

 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
jeomiland

Hi Danny

 

Actually, you can just go to http://hivelogic.com/enkoder/  and get the code directly. Just enter an email addr, default subject and the clickable text (like "click here to contact us") and the code will be displayed in the results box, then just copy/paste where you need it. This way you can experiment.

 

Thanks

Share this post


Link to post
Share on other sites
jeomiland

Since this code does not seem to work in DMS TextBoxes, I've removed the code - bummer. Still would like to know what DMS sections will allow this code to be used. Thanks for going to http://hivelogic.com/enkoder/ and grabbing a JS code block to experiment with - the Enkoder is such a useful function, would hate to no longer be able to use if with DMS

Share this post


Link to post
Share on other sites
Danny

Hi,

 

Enter your code into a MediaBox and not a TextBox, when entered into a textbox the code works.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×