Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Wufoo embed code on Developer page from iframe to javascript #33

Open
shua123 opened this issue Jun 20, 2015 · 1 comment
Open
Labels

Comments

@shua123
Copy link
Contributor

shua123 commented Jun 20, 2015

Currently the wufoo form on the Developer page is embedded using Wufoo's older iFrame method. The iFrame does not autoresize. This can cause the bottom of the form to be cut off if the browser is set with a special font or font size. Switching to Wufoo's recommended javascript embed method autoresizes and should solve this issue.

@shua123 shua123 added the bug label Jun 20, 2015
@smarziano
Copy link
Member

Here is the updated embed code for the Developer form:

<div id="wufoo-q1s01e1n09y3274">
Fill out my <a href="https://smartchicago2012.wufoo.com/forms/q1s01e1n09y3274">online form</a>.
</div>
<script type="text/javascript">var q1s01e1n09y3274;(function(d, t) {
var s = d.createElement(t), options = {
'userName':'smartchicago2012',
'formHash':'q1s01e1n09y3274',
'autoResize':true,
'height':'977',
'async':true,
'host':'wufoo.com',
'header':'show',
'ssl':true};
s.src = ('https:' == d.location.protocol ? 'https://' : 'http://') + 'www.wufoo.com/scripts/embed/form.js';
s.onload = s.onreadystatechange = function() {
var rs = this.readyState; if (rs) if (rs != 'complete') if (rs != 'loaded') return;
try { q1s01e1n09y3274 = new WufooForm();q1s01e1n09y3274.initialize(options);q1s01e1n09y3274.display(); } catch (e) {}};
var scr = d.getElementsByTagName(t)[0], par = scr.parentNode; par.insertBefore(s, scr);
})(document, 'script');</script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants