Home
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:alternate exit workaround in 1.7 not possible?? (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:alternate exit workaround in 1.7 not possible??
#13301
halyfax (User)
Senior Lime
Posts: 71
graphgraph
User Offline Click here to see the profile of this user
alternate exit workaround in 1.7 not possible??? 4 Months, 3 Weeks ago Karma: 0  
I am trying to add the alternate exit workaround in ver 1.7 and it is not working.

The <script> and </script> tags are being stripped.

I add this in a question field:
Code:



First of all, in what year were you born?
<script>
if ("{INSERTANS:37895X1X1}" == "1")
{
window.location="https://www.surveys.com";
}
</script>



I click update question and this is what I get

Code:



First of all, in what year were you born?

if ("{INSERTANS:37895X1X1}" == "1")
{
window.location="https://www.surveys.com";
}


 
Logged Logged  
  The administrator has disabled public write access.
#13302
halyfax (User)
Senior Lime
Posts: 71
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 4 Months, 3 Weeks ago Karma: 0  
I "thought" I found the answer

Just select the fullscreen editor (limeFitWin) and then hit the "source" button.

but it still does not work

I tried the full screen editor and clicked source pasted the code then there was no save button so I clicked the (limeFitWin) button again to return and then clicked update question.

then I tried to go back into the fullscreen source and this is what was there

Code:

Gender:<br />
if (&quot;{INSERTANS:37895X1X1}&quot; == &quot;1&quot;)             {
window.location="http://www.surveys.com";
}

 
Logged Logged  
 
Last Edit: 2008/05/14 15:42 By halyfax.
  The administrator has disabled public write access.
#13304
halyfax (User)
Senior Lime
Posts: 71
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 4 Months, 3 Weeks ago Karma: 0  
actually it did not work. I tried the full screen editor and clicked source pasted the code then there was no save button so I clicked the (limeFitWin) button again to return and then clicked update question. The (script) was stripped again.

After saving I go back into the full screen source and this is what I see
Code:


Gender:<br />
if ('{INSERTANS:37895X1X1}' == '1';)             {
window.location="http://www.limesurvey.org";
}

 
Logged Logged  
 
Last Edit: 2008/05/14 19:08 By c_schmitz.
  The administrator has disabled public write access.
#13313
ElMatador69 (Moderator)
LimeSurvey Team
Posts: 1536
graphgraph
User Online Now Click here to see the profile of this user
done:alternate exit workaround in 1.7 not possible 4 Months, 3 Weeks ago Karma: 30  
Hi, On my knowledge you have to set a parameter to allow such things in config.php ==> this is a new security option since one of the latest versions!

Try: $filterxsshtml

docs.limesurvey.org/tiki-index.php?page=...n#_Security_settings
 
Logged Logged  
 
Get in touch with the LimeSurvey Development Team via IRC
If our informations and answers were useful to you, please consider a donation to the LimeSurvey Project!
  The administrator has disabled public write access.
#13314
ITEd (Moderator)
LimeSurvey Team
Posts: 302
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 4 Months, 3 Weeks ago Karma: 7  
Not only do you have to fiddle with the editors to get code into the survey, you also have to specifically allow scripts (needs a flowchart to get some of these interdependent things working . Copy from config-defaults.php to config.php the line "$filterxsshtml = true;" and set it to FALSE. Then it shoud work if you use the "source" button or do it without any editor.

Regards.
 
Logged Logged  
  The administrator has disabled public write access.
#13335
Mazi (Moderator)
Moderator Lime
Posts: 2760
graph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 4 Months, 3 Weeks ago Karma: 19  
Can you update the workaround section? This has been asked several times.

Thanks a lot!
 
Logged Logged  
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
  The administrator has disabled public write access.
Go to top