The LimeSurvey Fund-Raiser 2012 is complete. Thank you for donating a total of 25,000 USD!     List of donors »

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Close Window

Close Window 1 year 11 months ago #61177

  • waitz
  • waitz's Avatar
  • OFFLINE
  • Silver Donor
  • Posts: 166
  • Thank you received: 1
  • Karma: 3
Is it possible to add a close window js to this alert that comes after saving a survey in index.php:

if (isset($_POST['saveall']) || isset($flashmessage)) { echo "<script language='JavaScript'> $(document).ready( function() {alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>"; } [code][code]
if (isset($_POST) || isset($flashmessage))
{
echo "<script language='JavaScript'> $(document).ready( function() {alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>";
}
[code]
Version 1.91+ Build 11232 | PHP 5.3.9 | MySQL 5.1.56 |
Last Edit: 1 year 11 months ago by waitz.
The administrator has disabled public write access.

Re: Close Window 1 year 11 months ago #61182

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 614
  • Thank you received: 71
  • Karma: 77
Yes, but it will most likely not work because most browsers today prevent it and will only allow to close a window that was previously opened by JS.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: DenisChenu, ITEd
Time to create page: 0.157 seconds
Donation Image