Welcome to the LimeSurvey Community Forum

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

Embed survey in iframe

  • Fred01
  • Fred01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 6 months ago #65627 by Fred01
Embed survey in iframe was created by Fred01
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 topic has been locked.
More
12 years 6 months ago #65631 by bwoo5
Replied by bwoo5 on topic Embed survey in iframe
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 topic has been locked.
  • Fred01
  • Fred01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 6 months ago #65640 by Fred01
Replied by Fred01 on topic Embed survey in iframe
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 topic has been locked.
More
7 years 6 months ago #141772 by frozo
Replied by frozo on topic Embed survey in iframe
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 topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 6 months ago #141774 by holch
Replied by holch on topic Embed survey in iframe
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

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose