Skip to content

Instantly share code, notes, and snippets.

@sclarson
Created January 17, 2012 21:03
Show Gist options
  • Save sclarson/1628848 to your computer and use it in GitHub Desktop.
Save sclarson/1628848 to your computer and use it in GitHub Desktop.
Getting around webforms all ecnompassing form for some off site posts
function createAndSubmitSalesForceLogin(selector,action,method) {
var newForm = $(document.createElement('form')).hide()
.attr('method',method).attr('action',action)
.append($(selector).html())
.appendTo('body');
$(newForm).submit();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment