Jump to content
Search Community

Progrmming with $http service in Angularjs is not giving desired result

srinum
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

Posted

Following code using $http service in Angularjs is not giving required output:
 

$http({
                url: ' "http://localhost/AdvancersService/AdvancersService.svc/GetDomains" ',
                method: "POST",
                data: { "name": { "SearchText": "Info" } },
                
            })
                    .then(function (response) {
                        // success
                        alert("Success:" + response)
                       
                    },
                    function (response) {
                        // failed
                        
                        alert("Failed" + response)
                    });

please suggest to make code operate, any suggestion will be appreciated.
 

Posted

This forum is for GSAP, not Angular. Go ask you question over at Stackoverflow... and try changing POST to GET.

  • Like 2
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...