IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this forum will no longer be available. More details available on our FAQ.
Topic
  • No replies
joethall
joethall
1 Post

Pinned topic Ajax call loses URL parameters

‏2017-07-18T00:47:33Z | ajax

A page called Search.asp issues a call to Ajax and requests a parameter be passed on the URL (the data attribute).  However, the specified parameters do not show up in the Request collection.

$.ajax({
                       //url:this.attr("href"),
                       url:     'PolyMap1.asp',
                       type: 'GET', //(POST?)
                       success: function(response) {
                                //alert("success");
                           $("selector").html(response);
                       },
                       error: function(request, settings, exception) {
                                //alert("error");
                           console.log(request + ", " + settings + ", " + exception);
                       },
                       complete: function() {
                                //alert("complete");
                           console.log("Polydraw complete");
                       }
                    })

Can anyone help me to understand why the parameter values are missing?