Questions tagged as 'ajax'

1
answer

Uncaught TypeError: $ .ajax is not a function?

What problem with my code, in the console shows this error: home:85 Uncaught TypeError: $.ajax is not a function at HTMLFormElement.<anonymous> (home:85) at HTMLFormElement.dispatch (jquery-3.2.1.slim.min.js:3) at...
asked by 22.08.2017 / 22:42
2
answers

Automatic Reload without being precise

I have a question! I have a voting system, which has a page that shows the live results of the vote, this page uses to show the charts and Google Charts background has an ajax code that runs every 1 second, which is always going to the file .xml...
asked by 25.04.2018 / 21:43
1
answer

Microsoft Edge passing strange characters in AJAX call

I have an Ajax call on a web system, where you specify a date of dismissal, and you dismiss an employee on that date: dataistheparameterthatcomeswiththeAjaxcall.WhenItestinChromeoranyotherbrowser,itworksperfectly.ButmyclientusesEdge,andwhenI...
asked by 11.05.2018 / 21:29
1
answer

What is the purpose of the ajax error function?

I have some doubts, what is the error of ajax? $.ajax({ url: 'ws/controller/sys_controller.php?id=4', type: 'post', data: dados, success: function (data) { /*$("#loading").hide();...
asked by 23.12.2017 / 11:08
2
answers

How to create associative arrays in javascript, json, how to manipulate?

It's the first time I'm dealing with this situation, so I do not know exactly how to get around it. The fact is this, I have a form with several inputs, divided by sections: IntheExperienceTab,IfillinsomeinputswiththedataandwhenIclickaddIcreate...
asked by 15.06.2017 / 06:31
1
answer

Loading on demand

I am trying to make a load system on demand and I do not know anything about ajax and I did not quite understand how it would work. I have a post system that shows a 10 post quantity on my page, and when I click on my second page (pagination)...
asked by 25.05.2017 / 05:20
1
answer

List errors returned in an ajax request

I have a Controller that is returning errors like this: return response()->json(['erros' => $this->renderHttpException($e)]); I'm getting this json as a response to the ajax request: {"email":["The email field is required."],"tel...
asked by 23.09.2016 / 20:30
1
answer

How to change DIV style using AJAX without refreshing the page

I'm doing a complementary activity in college, and I have to make a system to change the style of the div if the user problem is resolved or not. When I click on resolved if the div is already with class alert-danger, this class will change t...
asked by 13.10.2016 / 16:33
1
answer

Problem with JS / Jquery / Ajax

I have a button that when clicked it performs a function: function searchTradeItems() { var uid = $("#useruniqid").val(); var iusername = $("#username").html(); var userid = $("#balmung-id").val(); var itemType = $("#trade-type...
asked by 14.12.2016 / 04:49
1
answer

Asynchronous pagination with laravel

I made a simple pagination with laravel using the ->paginate() return, but as you know, it's not an asynchronous action, which leaves bad paging. I found some examples, but I could not make it work. Does anyone have tips?   ...
asked by 07.12.2016 / 13:36