Widget:Responseg

$(function { $(' Loading... ').appendTo('body');});
 * links must be contained in spans with class="response"
 * link should be a hyphen followed by the form embed key

$('span.response a').live('click', function { var url = this.href;  var parts = url.split('/');  if (parts.length) { url = parts[parts.length-1]; }  url = url.replace(/[^a-zA-Z0-9]+/g, '');  $('#responseform').attr('src', 'https://spreadsheets.google.com/embeddedform?formkey=' + url);

$('#dialog').dialog({height: 639, width: 760, modal: true, close: function(event, ui) {$('#responseform').attr('src', 'http://wikieducator.org/skins/common/we/spinner.html');}}); return false; });