Scriptwarning in IE 6 and encrypted code in source
Posted: 15 May 2008 01:22 PM   [ Ignore ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2006-05-07

When I look in the source-code of my form, it starts with a whole lot of script-code:

eval(unescape("document.write(---truncated....---B"))

eval(
unescape('var%20%6--- truncated --- &#x3b;'));

And many more of these before you see

<div class="form">
 <
div class="line-form">
  <
label for="ber">Bericht:</label>
  <
textarea rows="10" cols="10" name="bericht" id="ber"></textarea>
 </
div>
 <
div class="line-form">
  <
label for="naam">Naam:</label>
  <
input type="text" name="naam" id="naam"/>
etcetc.

This code gives a script-warning in IE6 (yellow triangle in the left bottom corner) and the form cannot be send. In other browsers there is no problem.

On another site I use freeform and get in the source the (expected) code:

<form id='freeform' method="post" action="http://url/index.php/contact/"  >
<
div class='hiddenFields'>
<
input type="hidden" name="ACT" value="29" />
<
input type="hidden" name="URI" value="/icontact/" />
<
input type="hidden" name="XID" value="fcddfdc314424707d08243d4b999d8edaba" />
<
input type="hidden" name="status" value="open" />
<
input type="hidden" name="return" value="in2050&amp;#47;bedankt_contact" />
<
input type="hidden" name="redirect_on_duplicate" value="" />
<
input type="hidden" name="RET" value="url/index.php/contact/" />
<
input type="hidden" name="form_name" value="contact_form" />
<
input type="hidden" name="id" value="freeform" />
<
input type="hidden" name="params_id" value="1858" />
<
input type="hidden" name="site_id" value="1" />
</
div>
etc

I’ve compared both templates and EE-settings, but cannot find a difference.

{exp:freeform:form form_name="contact_form" return="thanks" notify="me@fake-email.com" send_user_email="yes" user_email_template="vragensteller" template="contact" required="bericht|naam|email"}

May be someone knows what goes wrong in the first form. It’s probably very simple

Marcel

Profile
 
 
Posted: 15 May 2008 03:01 PM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

Marcel,

Is this a Freeform issue, or a FormHelper issue? Or are you trying to use both together? smile

 Signature 
Profile
 
 
Posted: 15 May 2008 09:57 PM   [ Ignore ]   [ # 2 ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2006-05-07

Sorry, my mistake. Wrong category… it’s freeform. Now I also notice a difference. The other website has no form_helper plugin.

But when I deleted formhelper, the encrypted code stays… formhelper has no impact on this issue, I guess.

Profile
 
 
Posted: 16 May 2008 07:17 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3350
Joined  2006-10-18

Marcel,

May I have a look at this page? smile

 Signature 
Profile
 
 
Posted: 16 May 2008 05:53 PM   [ Ignore ]   [ # 4 ]
Newbie
Avatar
Rank
Total Posts:  13
Joined  2006-05-07

Hi Pieman,

I just sent you the link by pm.
But I don’t think it’s a freeform-problem… I just discovered that the strange source-code also appears on a comments-page of the weblog… That means it’s smth of EE.

I hate it that I cannot find the right button. On other sites I made with EE all the sourcecode is visible and readable.

Thank you for your response,

Marcel

UPDATE:
Found it: i used Form Tag Encoder (v.1.0.2) which encrypts the source. Now I only have to solve the problem in IE 6.0 but therefor I’ll go to the maker of form tag encoder.
I thought it was simple… and it was. But it’s sometimes so easy overlooking the solution right in front of you.

Profile