Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //run button submission
- $(function () {
- $("#go-button").click(function () {
- //gets the value of the twitter-handle
- var twitter_handle = $('#inputDefault').val();
- //use global selected
- election = selected;
- //alert("twitter_handle: " + twitter_handle + " | Election: " + election);
- //external call to python
- })
- $.ajax({
- crossDomain: true,
- data: {},
- dataType : "json",
- withCredentials: "true",
- jsonpCallback: 'callback',
- success: function(da){
- alert(da);
- },
- error: function(){
- alert("FAILURE");
- },
- url: "http://localhost:8000/backend/ajax_caller.py"
- }).done(function(data) {
- //;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement