<button id="submitButton" data-dojo-type="dijit.form.Button" data-dojo-props="onClick:function(){ var e = document.getElementById('routeID'); var routeById = e.options[e.selectedIndex].text; var mA = document.getElementById('MeasureA').value; var mB = document.getElementById('MeasureB').value; debugger; $.support.cors = true; var ajaxData; $.ajax( { type:'Get', url: 'SOEDefault.aspx/GetData()', dataType: 'text', data: '{}', contentType: 'application/json; charset=utf-8', crossDomain : true, success:function(results) { console.log('Success!'); debugger; ajaxData = results; }, error: function(xhr, status, error) { debugger; console.log(error); } });
dataType
json
text
data: JSON.stringify({routeID: routeById, mA: mA, mB: mB}),
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)