Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Close the survey

Close the survey 4 years 10 months ago #68311

  • foxpur
  • foxpur's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Ok, I open the Survey in a popup window .....
<HEAD>
 
<SCRIPT LANGUAGE="JavaScript">
 
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=800,height=650,left = 590,top = 325');");
}
// End -->
</script>
</head>
 
<!-- Use the following link to open the new window -->
 
<A HREF="javascript:popUp('./limesurvey/index.php?sid=69111&newtest=Y&lang=sv')">Survey</A>

When I get to endpage I want to have a close button but:

<a href="#" onclick="self.close();">Close Me</a>

keeps changing the onclick to on<x>click ...

ideas?
The administrator has disabled public write access.

Close the survey 4 years 10 months ago #68313

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6317
  • Thank you received: 1407
  • Karma: 546
To insert JavaScript, you need to turn off the XSS filter.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Close the survey 4 years 10 months ago #68314

  • foxpur
  • foxpur's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 12
  • Karma: 0
Yepper... that was it... thanks
The administrator has disabled public write access.

Close the survey 4 years 10 months ago #68325

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6009
  • Thank you received: 371
  • Karma: 260
Have a look at global settings -> security -> XSS filter. This has to be turned of in order to prevent filtering of javascript code.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Time to create page: 0.255 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form