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

TOPIC: Embed survey in iframe

Embed survey in iframe 5 years 2 months ago #65627

  • Fred01
  • Fred01's Avatar
  • Offline
  • Expert Lime
  • Posts: 147
  • Thank you received: 5
  • Karma: 3
I'm trying to embed limesurvey inside another page using the iframe tag. I've read in other posts that this should be possible. Is there some trick I'm missing? Here's some simple sample html:

<html>
This is the "wrapper" page
<body>
<iframeĀ src="www.mysite.com/limesurvey/index.php" width="100%" height="300">
</iframe>
</body>
</html>

This page is in the limesurvey directory; I just added the fully qualified path just in case. Note I'm forcing SSL in this site.
The administrator has disabled public write access.

Embed survey in iframe 5 years 2 months ago #65631

  • bwoo5
  • bwoo5's Avatar
  • Offline
  • Expert Lime
  • Posts: 80
  • Thank you received: 4
  • Karma: 0
I looked forever also on the best way to get a page to show up inside another page and this code ended up working the best, just put in your website link inside the quotes where it says to and save as like index.html or whatever you want

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1 />
<title>Your Title</title>
<META name="robots" content="noindex,nofollow">
</head><frameset rows="100%,*" border="0">
<frame src="YOUR WEBSITE LINK HERE INSIDE THE QUOTES" frameborder="0" />
<frame frameborder="0" noresize />
</frameset> document.removeEventListener('click, clickHandler, true);
</html>
The administrator has disabled public write access.

Embed survey in iframe 5 years 2 months ago #65640

  • Fred01
  • Fred01's Avatar
  • Offline
  • Expert Lime
  • Posts: 147
  • Thank you received: 5
  • Karma: 3
Thanks, that works. I did get my iframe implementation to work also. Although I don't like the way it looks yet. I wanted to use an iframe to control access to the survey, so that you'd need to get authenticated to the parent page in order to see the survey in the iframe.

Really I should probably post a new question: How can you use an external authentication system to control access to limesurvey.
The administrator has disabled public write access.

Embed survey in iframe 2 months 2 weeks ago #141772

  • frozo
  • frozo's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 6
  • Thank you received: 1
  • Karma: 0
Hi, I have insert my survey with iframe in my webpage. How can I get to put the USER TOKEN?. Something like this does not work:
www.mywebpagewhereistheiframe.com/{TOKEN}. When user opens the survey, it required the password. Is there anything I can do to avoid this?, I mean, I want that user clic on link with a token (when invitation email occurs), could you help me please?

Thanks
The administrator has disabled public write access.

Embed survey in iframe 2 months 2 weeks ago #141774

  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5414
  • Thank you received: 806
  • Karma: 239
Please do not post the same question more than once, you have asked this already here a few hours ago:
www.limesurvey.org/community-services/fo...iframe-occurs#141763
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | [url=https://manual.limesurvey.org/Workarounds[/url]

If you found this answer helpful and it saved you some time please consider a [url=https://donate.limesurvey.org[/url] to the...
The administrator has disabled public write access.
Time to create page: 0.244 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form