Welcome, Guest
Username: Password: Remember me

TOPIC: Close the survey

Close the survey 3 years 3 weeks 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.

Re: Close the survey 3 years 3 weeks ago #68313

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4371
  • Thank you received: 829
  • Karma: 381
To insert JavaScript, you need to turn off the XSS filter.

Capture3_2011-11-02.PNG
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.

Re: Close the survey 3 years 3 weeks 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.

Re: Close the survey 3 years 3 weeks ago #68325

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
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.151 seconds
Donation Image