Welcome, Guest
Username: Password: Remember me

TOPIC: Embed survey in iframe

Embed survey in iframe 3 years 3 months ago #65627

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • 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.

Re: Embed survey in iframe 3 years 3 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.

Re: Embed survey in iframe 3 years 3 months ago #65640

  • Fred
  • Fred's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 163
  • 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.
Moderators: ITEd
Time to create page: 0.090 seconds
Donation Image