Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Missing jQuery from blacklisted link in email

  • YvesLanglois
  • YvesLanglois's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 6 months ago #141095 by YvesLanglois
Missing jQuery from blacklisted link in email was created by YvesLanglois
Hello,

there seems to be a really different way to generate the pages from the blacklisted link in email invitations. jQuery is not loaded in these pages and throws an error : $ is undefined. This means any startpage.pstl using jQuery will generate this error.
This is simply seen from comparing the page source. Here is an extract from my Survey:

First lines of source code of
-You have been successfully removed from this survey.
-You have been already removed from this survey.
pages:

<!DOCTYPE html>
<html lang="fr">
<head>
<!-- startpage.pstl -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/8fa1c497/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/588c364d/css/jquery-ui-custom.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/588c364d/css/bootstrap-slider.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/588c364d/css/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/588c364d/css/flat_and_modern.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/588c364d/css/template.css" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/6d682815/css/bootstrap.min.css" media="screen" />
<link rel="stylesheet" type="text/css" href="/LS/tmp/assets/341659f/css/yiistrap.min.css" media="screen" />
<script type="text/javascript" src="/LS/tmp/assets/54fc7b61/jquery-2.2.4.min.js"></script>
<script type="text/javascript" src="/LS/tmp/assets/f6fc831a/js/jquery-ui-1.11.4.min.js"></script>
<script type="text/javascript" src="/LS/tmp/assets/35b2bb08/jquery.ui.touch-punch.min.js"></script>
<script type="text/javascript" src="/LS/tmp/assets/588c364d/scripts/template.js"></script>
<script type="text/javascript" src="/LS/tmp/assets/588c364d/scripts/bootstrap-slider.js"></script>
<title></title>
<meta name="generator" content="LimeSurvey www.limesurvey.org " />

Same lines of source code of
-You are already a part of this survey.
-You have been successfully added back to this survey.
pages:

<!DOCTYPE html>
<html lang="fr">
<head>
<!-- startpage.pstl -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title></title>
<meta name="generator" content="LimeSurvey www.limesurvey.org " />


Is this a standard behavior?
Should we avoid using jQuery in startpage.pstl?

Thank you.
The topic has been locked.
  • YvesLanglois
  • YvesLanglois's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 5 months ago #142046 by YvesLanglois
Replied by YvesLanglois on topic Missing jQuery from blacklisted link in email
I just want you to know I saw that the jQuery was loaded at the end of the page for the blacklisted page.

I used a javascript equivalent to $document.ready because my javascript was loaded before the included jQuery.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose