All Questions
Tagged with angularjs-http jquery
9 questions
0
votes
1
answer
580
views
AngularJS CORS http call not working but plain Ajax & jQuery working fine
I have a simple cross domain service designed to handle the Simple CORS request. I am able to call it through plain xmlHTTP call or jQuery($.ajax) but its throwing Access-Control-Allow-Origin error ...
2
votes
3
answers
1k
views
FileReader JS Api Call Fire before it's ready
I'm trying to read a file, create a "FileContainer", and a DataUrl from a fileReader so i can send it to a web api.
My problem is that the Api call fires before my object is created, so i send Null ...
0
votes
2
answers
547
views
Angularjs not allowing square brackets in the url parameter - '['
I want to call and external api
It is working fine if i have parameters like this
$http.post('http://api.myprivatebox.com/users.json', { email : email, password : password}).then(function (results)...
4
votes
1
answer
4k
views
How do you check if the data is null in http.get in angularjs AND do something?
My code:
<script>
function customersController($scope, $http) {
$http.get("https://tic.com/testingservice/HttpService.svc/operator/Var1/Var2")
.success(function (response) { ...
0
votes
1
answer
2k
views
Add a custom header in http get request angularjs.
This is my angularjs request.
var req = {
method: 'GET',
url: 'http://localhost:8080/test',
headers: {
"x-auth-token" : user.token
...
1
vote
0
answers
381
views
Manipulate DOM after Angular has retrieved content via $http and added it to a partial view template
I looked at various similar questions such as this one, this one, this one, this one, and this one that failed to provide a solution to my problem before hitting on a solution myself. However, it ...
199
votes
11
answers
291k
views
How do I POST urlencoded form data with $http without jQuery?
I am new to AngularJS, and for a start, I thought to develop a new application using only AngularJS.
I am trying to make an AJAX call to the server side, using $http from my Angular App.
For sending ...
0
votes
1
answer
378
views
angularjs jsonp request fails
I'm trying to do a jsonp request to a server.
However, I don't seem to get it to work at all...
What I've been trying is to request it using this code:
var deferred = $q.defer();
$http({
...
15
votes
2
answers
19k
views
What is the equivalent of jQuery ajax beforeSend in Angularjs?
I am familiar with Jquery AJAX call, which has different callbacks like beforeSend, success, complete, etc.
This is the example AJAX call with Jquery:
$.ajax({
url: 'register.php',
type: 'POST',
...