ITsolutionWizard
asked on
asp.net, jquery
Does it looks right to you? url: GetSaleTax + encodeURIComponent("(066,3 37557," + 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} ,{Customer No},{ShipT oCity},{Sh ipToState} ,{ShipToZi p},{ShipTo Country})" )]
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,4 7201,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,3 37557," + city + "," + state + "," + zip + ",USA)"),
processData:true,
// [WebGet(UriTemplate = "QuoteService/GetSaleTax({ CompanyID} ,{Customer No},{ShipT oCity},{Sh ipToState} ,{ShipToZi p},{ShipTo Country})" )]
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(setSaleTax Info(resul tObj.Data) );
//}
},
error: function (xhr) {
//$('#data').html(xhr.resp onseText);
alert(xhr.responseText + " : error GetSaleTax");
}
});
});
}
}
</script>
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({
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,4
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,3
processData:true,
// [WebGet(UriTemplate = "QuoteService/GetSaleTax({
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(setSaleTax
//}
},
error: function (xhr) {
//$('#data').html(xhr.resp
alert(xhr.responseText + " : error GetSaleTax");
}
});
});
}
}
</script>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
please take a look attachment.
error8.jpg
error8.jpg
ASKER
ambience: Please let me know if you can help....Thanks
You should keep one question and continue posting comments until you get a resolution.