Hi,
I am developing application which consume wcf rest service via ajax and json. I am getting result when I use Internet explore but for other browse like Mozilla and chrome it did not give any result.
Please help.
Thanks,
Pramod
Following is the code:
- <script src="js/JSon.js" type="text/javascript"></script>
- <script src="js/jquery-1.6.2.min.js" type="text/javascript"></script>
- <script src="js/jquery.js" type="text/javascript"></script>
- function fillcategory() {
- var GetCategoryURl = "http://localhost:4444/Service1.svc/GetCategory"
- var drp = "";
- $.ajax({
- cache: false,
- type: "GET",
- async: false,
- url: GetCategoryURl,
- dataType: "json",
- success: function (objCategory) {
- Category = objCategory;
- },
- error: function (xhr) {}
- });
- fillSubcategory();
- }