Welcome, Guest
Username: Password: Remember me

TOPIC: Close the survey

Close the survey 3 years 8 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 3 years 8 months ago #68313

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 4961
  • Thank you received: 1019
  • Karma: 424
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Close the survey 3 years 8 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 3 years 8 months ago #68325

  • Mazi
  • Mazi's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5687
  • Thank you received: 329
  • Karma: 255
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.
Moderators: ITEd
Time to create page: 0.173 seconds