How to embedd a survey - code not accepted

How to embedd a survey - code not accepted

by Britta Dube -
Number of replies: 6

Hello,

I have created a survey in www.surveymonkey.com and I want to embedd it in my moodle course. I have added a page to my course and I have copied the link below in the HTML-window of the text editor. But somehow the survey does not show up. Does anybody have a solution?

 <div id="surveyMonkeyInfo"><div><script src="https://www.surveymonkey.com/jsEmbed.aspx?sm=2cmGVlIh4s5KTFe14OSd2A_3d_3d"> </script></div>Create your <a href="https://www.surveymonkey.com/">free online surveys</a> with SurveyMonkey, the world's leading questionnaire tool.</div>

Average of ratings: -
In reply to Britta Dube

Re: How to embedd a survey - code not accepted

by karl o'keeffe -

I'm having the same problem. Did you find a solution?

In reply to karl o'keeffe

Re: How to embedd a survey - code not accepted

by Britta Dube -

Hello Karl,

I havn't found a solution so far. However, the problem appeared again. I wanted to embedd a gliffy-file (www.gliffy.com - tool for flowcharts) but it has a java-script-code.

Anybody else having an idea how to embedd script-Codes like the one below?

<script src="http://www.XXXXX" type="text/javascript"> </script>

Britta

In reply to Britta Dube

Re: How to embedd a survey - code not accepted

by John Doubleday -

This answer may well disappoint but I hope not.

When I was looking for a survey I used the Questionnaire Module.(I am using 2.?) The finished Questionnaire looked neat. I dislike surveys!!............ most are boring so I  embedded small thumbnail images that when clicked went full size (images stored on photobucket and collect the code).

A cool way to collect data for both teacher and student. It could be even entertaining (God forbid). Yes I did collected permission to use this cartoooon.

In reply to Britta Dube

Re: How to embedd a survey - code not accepted

by Tim Morrissey -

I had the same issue only after upgrading from 1.9 to 2.1 and contacted survey monkey. The recommended this, which solved the issue perfectly and was easy to implement. 

"You can use the following HTML code to paste in your web page: <iframe src ="http://www.surveymonkey.com/s/....." width="100%" height="800"></iframe>

*Note, you can customize the overall size of the embedded window, plus add boarder options by adjusting the HTML. You can click the link below to learn more about how to generate an iframe.
http://www.w3schools.com/tags/tag_iframe.asp"

To effect this, I used "Add a page" activity, rather than add a Label. Here is my templated process for doing this which I have added to my moodle course template. 

  1. Go to http://www.surveymonkey.net/MySurveys.aspx
  2. Find correct unit survey/
  3. click 'collector icon' adjacent to survey/
  4. click 'Web link"
  5. Copy the link id (http://www.surveymonkey.com/s/ABCODEEXAMPLE)
  6. Return to moodle/
  7. Add Activity/Page
  8. click 'Edit HTML Source' tool
  9. Paste in <iframe src ="LinkID" width="100%" height="1330"></iframe>
  10. Paste the survey collector link id bwt inverted commas which will look like <iframe src ="http://www.surveymonkey.com/s/ABCODEEXAMPLE" width="100%" height="1300"></iframe>
  11. /Update/Save and Display

You will need to tailor the height to fit your survey length, but I found 1300 catered for all my surveys. 

Hope this helps.

Tim Morrissey

Average of ratings: Useful (1)
In reply to Tim Morrissey

Re: How to embedd a survey - code not accepted

by David Sensenig -

This was a big help to me! Thanks. I made the mistake of including one of the embed code src links, which resulted in showing the front page of the Survey Monkey site rather than my survey. However, using the Survey Web Link worked great.

In reply to Tim Morrissey

Re: How to embedd a survey - code not accepted

by Alistair Campbell -

Thanks very much for this advice. This helped me out enormously. Just a quick addendum in Moodle 2.6,    I used 'External Tools' for step 8. Worked a treat. MUCHO APPRECIATED smile