Created
July 5, 2011 21:06
-
-
Save gwing33/1065942 to your computer and use it in GitHub Desktop.
So...because I couldn't create a form on a asp.net page I ended up creating on in the master file outside the usercontrol form then using javascript to write the form...crap on so many levels.
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
$('#adword_save').click(function() { | |
var el = $('#submit_form'); | |
var form_html = '<input type="hidden" id="filename" name="filename" value="adwords.csv" />' + | |
'<input type="hidden" id="content" name="content" value="' + $('#copy_text').val() + '" />'; | |
el.attr({method: 'post', action: '/some/api/location.aspx'}); | |
el.html(form_html); | |
el.submit(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment