Portada
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 Post Reply Favoured: 0
TOPIC: Re:alternate exit workaround in 1.7 not possible??
#13301
halyfax (User)
Senior Lime
Posts: 69
graphgraph
User Offline Click here to see the profile of this user
alternate exit workaround in 1.7 not possible??? 3 Months, 1 Week 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: 69
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 3 Months, 1 Week 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: 69
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 3 Months, 1 Week 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)
Moderator
Posts: 1361
graphgraph
User Offline Click here to see the profile of this user
done:alternate exit workaround in 1.7 not possible 3 Months, 1 Week ago Karma: 27  
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

http://docs.limes...?page=Installation#_Security_settings
 
If our informations and answers were useful to you, please consider a donation to the LimeSurvey Project!
 
Logged Logged  
  The administrator has disabled public write access.
#13314
ITEd (User)
Gold Lime
Posts: 256
graphgraph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 3 Months, 1 Week ago Karma: 6  
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
Posts: 2320
graph
User Offline Click here to see the profile of this user
Re:alternate exit workaround in 1.7 not possible?? 3 Months, 1 Week ago Karma: 18  
Can you update the workaround section? This has been asked several times.

Thanks a lot!
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
 
Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop