SurveyMonkey is popular online survey tool. It’s easier than ever to send free surveys, polls, questionnaires, customer feedback and market research. Plus get access to survey questions and professional templates
Survey monkey provides full control for its embedding code. But I found some interesting thing in it. My client gave me the issue that survey monkey embed code just breaking his prestashop template. I found survey monkey embed code in CMS
Survey monkey uses Badge script with iframe as I mentioned in the article Php profile badge script for your site
It was its height and width problem .The client doesn’t have the credential of its survey monkey .So i had to find another alternative. The trick is below.
Embed code provided by the survey monkey
1 2 |
<div id=“surveyMonkeyInfo”></div> <script src=“http://www.surveymonkey.com/jsEmbed.aspx?sm=mykey”></script> |
If the result does not fit with our layout we can modify the survey monkey iframe code as blow
1 2 3 4 |
<iframe scrolling=“yes” width=“664” height=“700” frameborder=”0“ allowtransparency=”true” style=”border:none;“ src=”http://www.surveymonkey.com/s.aspx?sm=mykey “> </iframe> |
in above code we replace url http://www.surveymonkey.com/jsEmbed.aspx?sm=mykey
to an another url http://www.surveymonkey.com/s.aspx?sm=mykey
where mykey is your server key.
So with the new code you can control the embed code without going into your survey monkey account.
Thanks.