Skip to content

Instantly share code, notes, and snippets.

background:
url(../images/arrow.png) 15px center no-repeat,
-webkit-gradient(linear,left top,left bottom,color-stop(0, #010101),color-stop(1, #181818));
@wufoo
wufoo / php.ini
Created September 19, 2010 14:12
;;;;;;;;;;;;;;;;;;;;
; Xdebug
;;;;;;;;;;;;;;;;;;;;
[xdebug]
zend_extension=/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
<!DOCTYPE html>
<head>
<meta charset='UTF-8'>
<title>Wufoo API jQuery Plugin | Example: Entries</title>
<style>
#page-wrap { width: 600px; margin: 0 auto; }
#entries > div { padding: 10px; margin: 10px; background: #eee; }
</style>
@wufoo
wufoo / hi.js
Created February 21, 2011 22:20
this is cool!
var x = '1';
@wufoo
wufoo / FormEmbedKitExample.html
Created February 21, 2011 22:33
Example of the Wufoo Form Embed Kit
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Wufoo Form Integration &middot; Test</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
@wufoo
wufoo / Script Tags.html
Created February 21, 2011 22:58
js file includes for the Wufoo Form Embed Kit
<!-- FIG. 4 - The Wufoo Form Embed Kit -->
<script src="//wufoo.com/scripts/iframe/formEmbedKit.js"></script>
<!-- FIG. 5 jQuery NOT REQUIRED, just used here for funzies -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script>
<!-- FIG. 6 opening and closing of iframe in popup -->
<script src="//wufoo.com/scripts/iframe/example/example.js"></script>
<!-- FIG. 7: only required if previewing the form for the user -->
@wufoo
wufoo / framework.js
Created February 21, 2011 23:16
Defining the function for the Wufoo Form Embed Kit
var framework = WufooFormEmbedKit(userDefinedCallback, 'popup', 'yourPoviderIdentifier');
@wufoo
wufoo / userDefinedCallback.js
Created February 21, 2011 23:27
User Defined Callback for the Wufoo Form Embed Kit
function userDefinedCallback(message, transport) {
//FIG. 10 Close lightbox
$("#popup").fadeOut();
// FIG. 11: MAGIC: Receive code from wufoo.com
var objMessage = jQuery.parseJSON(message);
// FIG. 12: Create div and write out code for preview
// You wouldn't necessarily need to preview, you can do whatever you want with the code
$('<div />', {
@wufoo
wufoo / Return Value.JSON
Created February 21, 2011 23:44
JSON return from the Wufoo Form Embed Kit
{
"setup":"<script type=\"text\/javascript\">var host = ((\"https:\" == document.location.protocol) ? \"https:\/\/secure.\" : \"http:\/\/\");document.write(unescape(\"%3Cscript src='\" + host + \"wufoo.com\/scripts\/embed\/iframe.js' type='text\/javascript'%3E%3C\/script%3E\"));<\/script>",
"display":"<script type=\"text\/javascript\">\nvar z7x4a9 = new WufooForm();\nz7x4a9.initialize({\n'userName':'wufooapi', \n'formHash':'z7x4a9', \n'autoResize':true,\n'height':'627',\n'ssl':true});\nz7x4a9.display();\n<\/script>"
}
@wufoo
wufoo / Easiest Example Possible.html
Created February 22, 2011 14:13
Easiest possible example of the Wufoo Form Embed Kit
<html>
<body>
<div id="popup"></div>
<script src="http://wufoo.com/scripts/iframe/formEmbedKit.js"></script>
<script>
var framework = WufooFormEmbedKit(userDefinedCallback, 'popup', 'yourPoviderIdentifier');
framework.initialize();
function userDefinedCallback(message) {
alert(message);
framework.destroy();