Created
January 17, 2012 21:03
-
-
Save sclarson/1628848 to your computer and use it in GitHub Desktop.
Getting around webforms all ecnompassing form for some off site posts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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