When using xmlHttp.send object in javascript inside of a form, the xmlHttp.responseText variable is always blank when accessing the form using the LF App. It works when using a web browser. Is this object only supported by web browsers.
function httpGet(theUrl) { var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", theUrl, false ); // false for synchronous request xmlHttp.send( null ); return xmlHttp.responseText; } //var week = $('.week input').val(); var week = 1; var currentweek = httpGet('http://www.nfl.com/ajax/scorestrip?season=2017&seasonType=REG&week='+week);