Tagged Questions
0
votes
4answers
40 views
Angular2 Http Call not firing
Context :
Following several tutorials, I am testing authentication with Angular2 and JWT. I come with a component and a service :
app.component.ts
user.service.ts
App component (and template) ...
0
votes
0answers
19 views
$http.post works, but not $.ajax({type: “POST”…) [duplicate]
The following AngularJS code works in terms of retrieving data
$scope.getTransformerLoad = function (transformerID, season, minMax) {
var data = [
{
"name": "transformerID",
...
0
votes
0answers
16 views
Server side pagination ajax table in ionic
Have been trying using table from this link http://l-lin.github.io/angular-datatables/archives/#/serverSideProcessing but not succeeded yet. This is for server side processing in Ajax Datatable in ...
0
votes
0answers
21 views
Server side pagination in Datatables in ionic one not fetching data
this is datatable from http://l-lin.github.io/angular-datatables/archives/#/serverSideProcessing. Have been using above link for displaying datatable in ionic app. Datatable uses server side ...
2
votes
1answer
32 views
$http post request is not adding specified headers
I am making request to my server using $http to my backend for login purpose but even after specifying the headers properly its pre-flighting my request and also adding headers which I never asked it ...
1
vote
1answer
51 views
Why my resolve doesn't return data?
Hear is my route
.state('single_event',{
url: '/event/:id',
templateUrl: 'single_event.html',
controller: 'singleEvent',
resolve: {
resolvedVal: ...
-3
votes
0answers
12 views
ajax controller calls python using angular js
How to call this controller using angular js?
Python file:
@http.route(['/first_angular_sample123'], type='http',auth="public", website=True,csrf=False)
def first_angular_sample123(self, **post): ...
0
votes
1answer
48 views
How to correctly attach file to formData before POSTing to server?
I've been following this FormData tutorial here, however have yet to understand how the forData object works.
My input form
<input type="file" id="file-id" class="w300px rounded4px" name="file" ...
0
votes
0answers
30 views
Angular $http.get - retrieve data from url with authentication
Using Ajax in Angular I want to get some data from a URL that needs authentication. The curl command for getting this data outside of ajax is:
curl -u some_username:password 'https://website.com'
...
-1
votes
0answers
9 views
Is there any replacement for Google's _escaped_fragment_ convention or is the concept just not needed any more?
For pages that use the # or #! fragment for AJAX loading, there has been this convention used by Google:
https://developers.google.com/webmasters/ajax-crawling/docs/specification
Recommending that a ...
0
votes
2answers
24 views
AngularJS - Load Controller asynchronously From AJAX Without Changing Route
I want to dynamically load an angular controller upon an ajax call that renders a new view(HTML).
Here is what i have:
example of a view. HTML Snippet From AJAX
<!-- CVS Pharmacy Extracare - ...
0
votes
1answer
21 views
AngularJS Http GET invalidates CSRF Token
I'm working on Symfony 3.2 and I'm trying to use some AJAX requests with AngularJS on some pages.
I have the following HTML code :
<div ng-app="timelineApp" ng-controller="timelineCtrl">
<...
0
votes
1answer
29 views
Angular is waiting anoher request to start
In my App I need to do a request to save some data (this request is little slow) but the user can do another request in same time, when he did this, angular was waiting for the first request (not ...
0
votes
1answer
40 views
How to filter cookies when you send ajax request?
If you send ajax request to a server and your size of cookies is too large, you get the message:
Bad Request
Your browser sent a request that this server could not understand.
Size of a ...
0
votes
1answer
35 views
how to put my data using ng-model even im not inputting the data
when clicked table list it get the data pass to input1 modal
input1 (input1 not editable)
when start inputting data to "#input2" and "#textarea1"
my storedata like this
{
"input1":"", <--- not ...
1
vote
0answers
20 views
POST 422 (Unprocessable Entity) Laravel - Ajax
I am using Laravel 5.3 and i would also like to say that i am not that much experienced working on Laravel.
I am just trying to build a Login Form with
Laravel
Angular JS 1.5
Angular Material
...
-1
votes
0answers
31 views
How to manage like 1000 rows via services in AngularJS?
I need to manage some data sets via AngularJS. Basically I created a front end using Angular and connected it with a REST API. It's written from Laravel. Anyway i'm loading data with limit and offset. ...
0
votes
2answers
29 views
Ajax HTTP request from cordova win-10
we've got an issue while trying to reach our back-end server from a Windows-10 cordova app with XHR (AngularJS $http call).
The back-end server is available (test with a RESTclient plugin in a browser)...
-5
votes
0answers
42 views
Load a Page without the user being on it? [duplicate]
Is there a way to fully load a page of a site without the user even going on the page? Ex: there are three pages in a site and I am on the first one. Then when I go to the second one, it is already ...
0
votes
1answer
24 views
Unable to receive object in web api when making ajax calls via AngularJS
Hi I am developing one small web api application. Since 2 days I am struggling with small problem. I am not able t receive object in web api methods. For example, below is my web api method,
public ...
0
votes
1answer
54 views
Angular2 or React for dynamically displaying data vs just jQuery [closed]
Being relatively new to web development, I am trying to understand the various technologies out there that enable the following types of behavior:
Displaying user specified data from a database ...
0
votes
3answers
48 views
Automatically Submit the form in 20 sec
I am trying to automatically submit this form 20 sec, but something is wrong and is not working, i dont have any error messages and i am using this as a starting point to get the username and password ...
0
votes
1answer
48 views
MVC Controller method call from Angularjs return View HTML instead of JSON result
I have the following Controller method under HomeController,
[HttpGet]
public ActionResult GetStudents()
{
Student std1 = new Student();
List<Student> ...
0
votes
1answer
27 views
POST in codeigniter is empty all the time
I have been working on a project which uses Angular Js and Codeigniter. The strange part is that I am unable to POST the values to the controller.
I have tried with
Form POST
Plain JavaScript Ajax.
...
0
votes
1answer
27 views
Cookies not sent on OPTIONS requests
For an Angular 1 app I am working on, cookie authentication is used. The problem is: when making OPTIONS calls, cookies are not sent and the server tries to redirect user to login again. Just ...
0
votes
1answer
36 views
Angular File Upload via Laravel Controller
I need to upload image and video files to the server in an Angular application using Laravel 5.1 as the back end. All Ajax requests need to go to the Laravel controller first, and we have the code ...
-2
votes
2answers
28 views
delegate or make ajax call a component in react
As you can see in the code below my ajax (i'm using fetch) is located within a handleSearch function, in App component. How can I delegate and make the ajax call in its own component? I come from ...
1
vote
0answers
48 views
Microsoft Edge not handling ajax response data
Weird problem:
this page http://www.naidex.co.uk/consumer/exhibitors/ works fine on all browsers except Microsoft Edge, which fails to display the data got from an ajax request to http://webapi....
0
votes
0answers
17 views
jsonp file received from ajax call is often empty
I am calling a jsonp file from my server, in my ionic app, using an ajax call.
But the thing is, this call often returns an empty jsonp file.
The file is located on my server boardlineapp.com/app/...
1
vote
0answers
30 views
Angular 1 big data for $httpProvider.defaults.transformRequest issue
I have a strange situation when the ajax data is big I can get only part of them, each time the part is the same. All is good for small data, but when uploading data is big more (77 rows from excel ...
0
votes
0answers
36 views
How to reload ng-view after #url changed in angularjs
How do I reload an ng-view after the #url changed in AngularJs?
I want to change routes like jquery ajax. Here I used route AngularJs but it does not reload the route.
This is my code:
<script&...
0
votes
2answers
51 views
Laravel with angularJS load template after $http call
I am using Laravel with AngularJs trying to fetch data using $http method of angularJS
I got data successfully but the problem is that I want to redirect to another page to show the result how can I ...
0
votes
0answers
20 views
How to Dynamically Add Angular Styled Elements
I am working on a project that uses angular material as a layout framework but I have run into an issue regarding dynamically loaded content. I am populating a results box with html but instead of ...
2
votes
1answer
49 views
Angular get JSON data with ajax
How can I get json data via ajax with angular? I tried a lot but my code is not working.
My code:
<!DOCTYPE html>
<html lang="en" ng-app="test">
<head>
<meta charset="UTF-8"&...
1
vote
2answers
42 views
ngRepeat not updating after ajax call
This is part of my view:
<div class="chartspanel">
<div ng-repeat="(key, chartData) in main.chartsData" class="chart-box">
<div class="ibox">
<div class="...
0
votes
0answers
14 views
mod_security log reports missing User-Agent and blocks Ajax Request 403 , but User-Agent is present
From Log I am getting Error:
ModSecurity: Access denied with code 403 (phase 2).
Operator EQ matched 0 at REQUEST_HEADERS.
[msg "Request Missing a User Agent Header"] [severity "NOTICE"]
[...
0
votes
1answer
30 views
Angular 1 Sending Empty Payload on Post
I have a simple app that is posting an array of json to my API. I have several other posts that are working successfully.
When I investigated I the network traffic I found that the POST was sending ...
0
votes
0answers
23 views
Is there any object for $http which is equivalent to - $.ajaxsetup? [duplicate]
How we can setup common exception handling through $.ajaxsetup (same can be use by $.ajax), is there any object which can apply the setup for $http.
basically, if token is expired then web api ...
0
votes
1answer
16 views
Angular and Ajax Difference When Sending Request To NodeJS Server
I am trying to use some angular to communicate with a NodeJS server.
What I would do in JQuery
$.ajax({
url: "/list",
type: "POST",
contentType: "application/json",
dataType: "json",
...
0
votes
4answers
65 views
AngularJS - How to cache service`s ajax result to reuse in controller
I was recomended to use Angular services in order to centralize many repetative functions that were store in my controller, so I am rewriting my code using services now.
It seemed simple at first ...
1
vote
2answers
29 views
Secured RESTful API - How to download a file
I am developing a RESTful API with Spring Boot and secured with oAuth2.0 (via Spring Security) and my frontend in AngularJS.
I need to download a file and every post I read says (and I understand) ...
0
votes
2answers
33 views
Angularjs: not found the form fetched through the ajax call from the server
I have a problem to deal with fetching the html through the ajax call. It fetches the template of the add form; but I couldn't find the form fetched from html through the ajax call. So, how can I ...
0
votes
1answer
16 views
building a angular view based on ajax response
I am trying to get started with Angular(1), I have a layout where the nav needs to change based on the type of user that is logged in, when the page loads I send a request to the API to the user ...
0
votes
4answers
43 views
Do a loop instead of multiple $http chaining?
sorry, i have checked answers, but still dont understand how to make it :
I've got an array :
var surfaces = [
{min:0,max:499},
{min:500,max:999},
{min:1000,max:1499},
{...
0
votes
1answer
26 views
Unable to post serilizable object from $http to web api
web api has [Serilizable] model objects as that needs for serilization intense.
Now, when I post that model object from $.http call using below code then, it post without error but, no data populate ...
0
votes
0answers
10 views
Can someone help me with an angular $http ajax call to be able to succesfully call this Jax-RS endpoint
The following method is a Jax-Rs method which consumes a multipart form-data. It consumes a file and some additional data.
I am simply inable to understand how to write a angularjs client $http call ...
0
votes
1answer
46 views
"The requested resource does not support http method 'POST' - 405 response
$.http reqeust and web api both on localhost but different applications.
angular js (in other asp.net application)
return $http({
method: "POST",
url: ...
0
votes
1answer
36 views
Not able to get the data from asp.net mvc controller to angularjs using ajax call
i am able to hit the controller method and able to return the data
[HttpPost]
public JsonResult GetAppsList()
{
var Apps = DataModel.ApplicationMasters.ToList();
...
0
votes
3answers
97 views
cross domain localhost:port request denied with $http angularjs request to web api
angular js hosted by ASP.NET server.
Making call to web api.
when do POST web api without parameter then works. But when pass paramter to POST web api then, it gives below error.
Error:
XMLHttpRequest ...
1
vote
1answer
44 views
Angular http post to Laravel backend Request always empty
I have a problem that i don't know how to solve.
I use AngularJS 1 to make a post to my backend (Laravel 5.1).
The post is successful from AngularJS.
In my Laravel controller i use Request to recieve ...