Tagged Questions
0
votes
2answers
19 views
angularjs make serial actions by condition
i'd like to do user friendly action at my app.
The issue is:
I have one button. When user 'mousedown' on it, i send ajax query to server to get some info. What i want is to show that info only after ...
0
votes
0answers
8 views
Angular App and SEO Crawlability - Without Hashbangs [migrated]
I am reading all the articles on making a site crawlable by replacing Angular hashbangs in the URL with an escaped fragment. An example of such a tutorial:
...
0
votes
2answers
56 views
Convert a simple ajax call to use promise jQuery/AngularJS
I have this general method to use AJAX calls in a app:
function doAjaxCommand(url, type, async, params, successCallback, failCallback) {
$.ajax({
url: url,
type: type,
...
0
votes
0answers
35 views
AngularJS: Get data with $http and add it to module's constants
I want to achieve a situtation where once my module is loaded it call the server for some data and than put it in a conatant.
I tried this:
mymodule.constant('value', function($http) {
...
0
votes
1answer
19 views
Using one and all chaining in Restangular post requests
I have an issue where I'm trying to make a post request using Restangular:
I'll setup the query like so:
var auth = Restangular.all('auth');
var check = auth.one('check');
Then I'll do the post ...
0
votes
0answers
12 views
DFP Ads on an AngularJS app
We are building an AngularJS web app and we are trying to integrate DFP ads. By the way, we already have a PHP web app with DFP ads running so I am familiar with how DFP integration works, but of ...
0
votes
3answers
40 views
AngularJS get return value from AJAX that is outside controller
Ok, so I have a service with a function that does an HTTP request and the value returned is set to $scope, however this does not work because it seems $scope is not waiting for the AJAX call. How ...
0
votes
0answers
33 views
Spring mvc and angularjs with spring security ajax login
i want my angular-spring app to be secured, my angular side acts like the frontend and spring mvc is the backend or server side, all if fine but i have a problem using javaConfig based Spring ...
0
votes
3answers
22 views
Angular $http bad request
Below I've got a function that should make a post to the server.
var updateApplicationMetadata = function(appId, editorVersion, previewPubFile){
var deferred = $q.defer();
var ...
-7
votes
0answers
38 views
What is this AJAX actually doing? [closed]
I know, using AJAX is very easy this time.
jQuery $.ajax() Angularjs $http
I want to know how AJAX actually works. What's the procedure?
If I have a really large website, with huge GET data, how ...
0
votes
0answers
12 views
Angularjs Ajax loaded template not working,
I have used http://ngmodules.org/modules/textAngular plugin. It works when first loads the app for the first time.
When I click on the link to the left panel link it hides the current form and loads ...
0
votes
1answer
31 views
AJAX data transfer between angularjs front-end and nodejs back-end
FYI: There is main question on the bottom if you ever feel like my post is too long ;)
Im trying to build my first angularjs app and now Im stuck with collecting data via ajax from nodejs (express) ...
0
votes
0answers
19 views
Mock $http request using Jasmine
I have the following http request in my angular-js based app.
$scope.List = [];
$scope.GetList=
function () {
$http({
method: 'GET',
url: ...
0
votes
0answers
19 views
angularjs changes in data not affected in views ajax
I am developing an application with angular js
Question: When I have an ajax call to server and I need to change the views based on the result of ajax call, the views don't get affected by this call, ...
6
votes
2answers
212 views
Get the full call stack trace of $http calls
Let's say someone wrote a method like this in a file called app.js trying to peform an XHR request angainst a non existing url:
app.controller('MainCtrl', function($scope,$http) {
$scope.send = ...
2
votes
0answers
46 views
Verify if Google Email is being sent in ajax request
I've been reading a bunch into angular and I'm really new into it. I've been asked to develop this app for the company I work in where users need to login using their Google Credentials.
So far this ...
0
votes
0answers
40 views
Safari Crashes When The API Response Is 25 MB
I'm developing a website which should support by iOS safari browser.
Safari browser get crashed when the website do an ajax API call which has 25MB of JSON response data. Can you please suggest me ...
0
votes
0answers
25 views
Angular js adding template to the page with data fetched asynchronously from the server
I have the template bookTemp.html:
<div ng-repeat="book in books">
<div class="foo" ng-include src="'app/templates/book.html'"></div>
</div>
in my index.html file I have ...
0
votes
0answers
24 views
CORS working fine in jquery but not in angularjs
My Sever side is php/mysql.
I am making Ajax call in webservice of another domain(Which have access control enabled for *)
var postUrl = "http://logical-brains.com/elance_clone/test_login.php";
...
0
votes
1answer
27 views
Database Text Cannot be Parsed to JSON
I am receiving text from MySQL through an AJAX call using PHP. When I try JSON.parse(string)
I get an error. I validated my JSON and it turns out that MYSQL is giving me some UTF-8 values which JSON ...
0
votes
1answer
14 views
Update a controller variable after an ajax request
i'm new on AngularJS and i spent hours trying ti figure out what wrong whith my code...
var articles = angular.module('Articles', []).config(function($interpolateProvider){
...
1
vote
0answers
22 views
AngularJS+Atmosphere Websockets: Is it possible to retrieve attributes in AtmosphereResource from a HttpServlet?
I'm new to Atmosphere framework & websockets.
I'm developing a single page app, As a first step I want to implement a basic authentication using AngularJs(Client side) and Atmosphere ...
0
votes
2answers
21 views
AngularJS Async request method service return data using promise
I have this global method in custom service.
/**
* Global service class for making http requests.
*/
app.service('API', function ($http) {
/**
* Process remote POST request to give URL ...
1
vote
1answer
11 views
Mult page angular development
I have to create multi page angular framework using ng boilerplate. We have modular component based approach and single component can be created multiple times on same page. For example I can have 2 ...
0
votes
0answers
11 views
Angular.js send $http when app is idle
I'd like to collect some data (http post request) from my app in the background without affecting the performance. Is there any way I can detect is app is idle and only then do post request? I found ...
0
votes
1answer
56 views
Two-way data binding after an Ajax call
I have a problem with the AngularJS two-way data binding. I'll try to explain the issue as clearly as possible: I have a list of contact names. For each element I have an Edit button. When I click on ...
1
vote
1answer
15 views
Ajax GET returns Object #<Object> has no method 'slice' error
I make the following ajax call,
$scope.clientList = [];
$http({
method: 'GET',
isArray: true,
url: ...
1
vote
1answer
30 views
Angularjs $http “XML Parsing Error: no element found Location” error when expecting JSON results on GET
When I submit an angularjs $http GET call I receive an XML parsing error.
The $http call code snippet is:
$http({
method: 'GET',
url: "myapp/api/items" + itemId
});
The error is:
XML ...
0
votes
0answers
18 views
Cross domain calls between two domains
I am tyring to make call from my localhost angularjs code as ajax call to my web application server xyz.com. Web application maintains session with the help of default cookie. While making a ajax call ...
0
votes
4answers
29 views
spring rest project with client side in angular js - how to approach the rest service with ajax
So I have a spring rest project that includes client side app.
I can run the service on a local tomcat and get responses querying "http://:8080/books" for example.
I can set app an apache server and ...
0
votes
1answer
25 views
Ajax, json in AngularJS
I am trying to use the $http.get API to get a json data and then use it in my HTML tags.
I seem to miss something in the concept. here is my javascript:
var CouponsApp = ...
0
votes
1answer
39 views
Asp.Net MVC Layout reload just RenderBody() when navigating thru menu
I have Layout with navigation menu, when I click menu - whole page reloaded. How to reload just Views in RenderBody() section? What is the best way to do this?
0
votes
0answers
33 views
Ajax file without page refresh: Why are there so many solutions? What of them are still relevant?
I have to admit that I'm not very experienced with web development. Today I had to implement an AJAX file upload in an AngularJS. It is a single page application, so there should be no page refresh. ...
0
votes
0answers
11 views
Log all AJAX requests going through $httpBackend
How do I log all requests that go through $httpBackend? I know how to give a mock response with .respond(), how to let the request pass through with .passThrough(), but how can I only intercept the ...
1
vote
0answers
32 views
AngularJS Disable button on submit - re enable on error
I am having a problem dynamically disabling a button.
My API sleeps for 2 seconds to simulate a super slow connection, and I expect to see the submit button disabled on submit, the re-enable itself.
...
1
vote
1answer
27 views
Handling 406 http response in angularjs
I'm using angular with an ngResource factory with a restful controller on a Rails backend. My API responds with a 406 response with a json response structured like the following when a post request ...
1
vote
1answer
53 views
Add wait in ng-repeat in AngularJS
I have an ng-repeat block where I am creating few elements The data in the elements is comming from an ajax request which takes a little time. Also in the same block I have used a filter to filterout ...
0
votes
1answer
46 views
angularjs ajax with PHP varible
I have a code in angularjs which loops an ajax json response like this:
<div ng-repeat="post in posts">
{{post.title}}
{{post.url}}
</div>
It works fine. How do I do to pass a PHP ...
0
votes
1answer
22 views
Angular JS - $q.all() tracking individual upload progress
I'm using angular-file-upload module by danialfarid (https://github.com/danialfarid/angular-file-upload) and it works great.
I've been able to integrate in my wrapper service for REST calls and I can ...
-1
votes
1answer
26 views
$http.post success callback is not executing in angularJS
I am trying to post data in mongoDb database using $http.post() and calling a success callback. But the callback is not executing neither the data is added to db. I am using mongodblabs for hoisting ...
4
votes
1answer
55 views
Preventing HTTP Basic Auth Dialog using AngularJS Interceptors
I'm building an AngularJS (1.2.16) web app with a RESTful API, and I'd like to send 401 Unauthorized responses for requests where authentication information is invalid or not present. When I do so, ...
0
votes
0answers
33 views
Access-Control-Allow-Origin from mobile devices
We currently have an API running on a cluster of servers, with Apache. Every response from the API is JSON.
I've been playing around with the http://ionicframework.com/ framework, which uses Angular ...
1
vote
2answers
35 views
How to load content with next button
I have a form which requires 3 steps, 1 is a few details then when the user presses the "Next" button it moves on to the next step without using ajax and without checking if everything is correct.
I ...
1
vote
1answer
62 views
ngtable server side pagination
Hello I try figure out how make server side pagination with angularjs an ngtable.
I have two web services:
localhost:8080/app/api/period Method GET return json list of entities. As parameters are ...
0
votes
3answers
31 views
updating variable after ajax call made in angularjs
I use factory to make database calls in angularjs
var app = angular.module('myApp', []);
app.factory("Service", function ($http) {
var obj = {};
$http.get('test.txt').then(function (data) {
...
0
votes
1answer
42 views
processing ajax post on the server using c#
I'm trying to do something that's very new to me. I've done some digging but what I've come up with only had solutions by using some kind of .aspx page to process forms.
What I'd like to do is send ...
0
votes
2answers
26 views
Can I request by ajax to different domains or is that a cross-site limitation?
I am planning to develop a project which will have access to different services placed in different domains using ajax, so that it may get different types of data from each of them.
At the beginning ...
0
votes
0answers
41 views
Angular $http POST won't work with cors server
I have this POST request that can't go through. I have no problem making a GET or even PUT request, but the POST just appears as Cancelled in chrome dev tools.
$http({
url: ...
0
votes
0answers
35 views
Issue: angularjs post data inside then handler
I've got the issue that my $http.post is not working correctly. Everytime I send the post it seems like it doesn't send the data at all.
This is my post:
$http({
method: 'POST',
url: ...
1
vote
1answer
22 views
ng-select dropdown ajax/object mapping
Using angular ng-select, looking for the best practice/suggestion for linking the select drop-down with the selected option selected based on the properties of an object in scope.
The controller ...