Created
October 3, 2016 19:07
-
-
Save techgirlgeek/cbae29c7507bd3e8d1faabd649d7b234 to your computer and use it in GitHub Desktop.
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
var url = 'http://careers.davita.com/search/results?display=json&items_per_page=10&field_job_title='+category+'&field_primary_location_state='+state+'&search_api_views_fulltext='+keyword; | |
$('#search_url').val(url); | |
if(page == 0){ | |
$('#search_page').val('0'); | |
}else{ | |
$('#search_page').val(page); | |
url = url + '&page=' + page; | |
} | |
$.ajax({ | |
type: "GET", | |
url: url, | |
//data: data, | |
contentType: "application/javascript", | |
dataType: "jsonp", | |
success: function(data) { | |
//run function from options | |
_change_job_finder_table(data); | |
}, | |
error: function(jqXHR, status, err) { | |
//console.log(err); | |
//console.log('Error:' + err.responseText + ' Status: ' + err.status); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment