asp.net, jquery

Does it looks right to you? url: GetSaleTax + encodeURIComponent("(066,337557," + city + "," + state + "," + zip + ",USA)"),
Below codes working in IE, but not Chrome/firefox.

Need helps to find out why and how to fix it?


wcf: template:
 #region GetSaleTax
        [OperationContract]
        [WebGet(UriTemplate = "QuoteService/GetSaleTax({CompanyID},{CustomerNo},{ShipToCity},{ShipToState},{ShipToZip},{ShipToCountry})")]
        String GetSaleTax(string CompanyID, string CustomerNo, string ShipToCity, string ShipToState, string ShipToZip, string ShipToCountry);
        #endregion


jquery call:
<script type="text/javascript">
    function GetSaleTaxList(city, state, zip) {

        city = "COLUMBUS";
        state = "IN";
        zip = "47201";
        var str = "(066,337557,COLUMBUS,IN,47201,USA)";
         
        var GetSaleTax = "http://clientaccesstest.abcusa.com/wcf/orders/RestService/QuoteService/GetSaleTax";            
            if (city == '' || state == '' || zip == '' ) {
                  //setSaleTaxInfo("NO RATE");
            }else if (state == 'XX') {
                  //setSaleTaxInfo("NO RATE");
            }else{
                  $(document).ready(function () {
                              
                        //alert(GetSaleTax);
                        $.ajax({
                              cache: false,
                              type: "GET",
                              async: false,
                              dataType: "json",
                              contentType: 'text/plain',
                              //url: GetSaleTax + encodeURIComponent("(" + 066, '' + "," + city + "," + state + "," + zip + "," + USA + ")"),
                               url: GetSaleTax + encodeURIComponent("(066,337557," + city + "," + state + "," + zip + ",USA)"),
                               processData:true,                        
                    // [WebGet(UriTemplate = "QuoteService/GetSaleTax({CompanyID},{CustomerNo},{ShipToCity},{ShipToState},{ShipToZip},{ShipToCountry})")]
       
                              success: function (data) {
                                    //$('#data').html(data);
                                    alert(data + " : data");
                                    if (data == null)
                                          return;
                                    //setSaleTaxInfo(data);
                                    //resultObj = jQuery.parseJSON(data);
                                    //if (resultObj.Status != 'Failed') {
                                    //    $('#json').html(setSaleTaxInfo(resultObj.Data));
                                    //}
                              },
                              error: function (xhr) {
                                    //$('#data').html(xhr.responseText);
                                    alert(xhr.responseText + " : error GetSaleTax");

                              }
                        });
                  });
            }
}
</script>
LVL 1
ITsolutionWizardAsked:
Who is Participating?
 
ambienceCommented:
Perhaps you can activate Firebug in FF and post for us the errors you see in the Console tab?
0
 
ambienceCommented:
This is likely a duplicate of http://www.experts-exchange.com/Programming/Languages/.NET/Web_Services/Q_28651592.html?cid=1752

You should keep one question and continue posting comments until you get a resolution.
0
 
ITsolutionWizardAuthor Commented:
please take a look attachment.
error8.jpg
0
 
ITsolutionWizardAuthor Commented:
ambience: Please let me know if you can help....Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.