Missing GET parameter data
The main program has:
<a id="polyclick" href="PolyDraw1.asp" target="_blank" style="display:inline;">
<b> Geographical Selection</b></a>
When the href is clicked:
- $("#polyclick").click(function(e) {
- var ylist = "2014,2015,2016";
- // The value of ylist is computed but is a hard coded string here
- $.ajax({
- type: "GET",
- url: $(this).attr('href'),
- data: { 'ChkBoxYears': ylist },
- success: function(response) {;
- console.log(response);
- },
- error: function(request, settings, exception) {
- console.log(request + ", " +
- settings + ", " + exception);
- },
- });
- });
When the click happens and the ajax call is made, it appears
that the parameter ChkBoxYears does not get the contents
of ylist.
Does anyone know why the value of the parameter is not passed?