Questions tagged as 'ajax'

1
answer

Return Saved Registry ID (AJAX - MVC5 - ASP.NET)

I have a form that is sent by Ajax and stored correctly in the database. How can I make that at the time of saving, it returns the ID of that record that I just stored ?, since in another part of the document I have another form that needs that...
asked by 28.08.2018 / 00:45
1
answer

I need to send token bearer from ajax JQUERY

I have a problem ... I have an ajax jquery request to a webapi waiting for a token. I add the Authorization Bearer + Token header but it does not reach the web api ... I expose the code: $.ajax({ url : 'http://localhost:59596/P...
asked by 06.09.2018 / 05:23
3
answers

How to send AJAX request with headers

I explain my drawback: I am trying to consume a API of a page so I make the following request: <script> var button = document.getElementById("btn_submit"); button.addEventListener("click", e => { e.preventDefault...
asked by 01.10.2018 / 16:38
1
answer

How to know when they capture the screen of my web page?

I am working on a project with html, laravel, php, javascript, jquery and ajax the problem is that I want to know when they take screenshot to my web page and send an alert by email. I have searched for information but I do not find anything...
asked by 27.07.2018 / 20:52
1
answer

Can a request be made in an ng-click event?

Can a request of the post type be made in a click event in angular? <div class="box-header este" data-widget="collapse" ng-click=fxRequest() > function consulta_grupos($http, ref, vg, tipo, $scope) { var oficina = localStorage....
asked by 24.07.2018 / 20:12
1
answer

How to consume https json with webform asp.net c #?

Good I would like you to help me I am wanting to consume a service HTTPS . Realizing with asp.net webform. For which I am doing with jquery json I have been reading the documentation and it indicates that you have to use JSONP. link Wha...
asked by 09.08.2018 / 18:24
1
answer

Undefined index json_decode php_curl

hello friends I try to get a field of this json that I get from a query with php curl: <?php $ruta = "https://ruc.com.pe/api/beta/ruc"; $token = "808e687d-3960-43c1-9a75-c102cdecf1a4-77600153-fcd3-4a2e-a1f8-1327b"; $rucaconsultar = '10486...
asked by 02.05.2018 / 16:52
1
answer

Read PHP Json data brought by ajax to Js

I send a variable by means of ajax to a php that consults me a unique record according to the id sent in mentioned ajax, I must bring all the data of that record, here the Js function actualizar_cuenta() { var selector = document.getElementB...
asked by 04.04.2018 / 02:08
1
answer

How to execute code when starting and finish an ajax

I tell you, I'm working on a preloader that loads a div with every ajax request, I checked the jquery documentation and found the ajax event handler and implemented it, but I have a problem, the ajaxStart, just loads the gif in the first request...
asked by 28.03.2018 / 18:58
2
answers

The page is restarted after uploading the second file

I created a file upload works well when it's the first time I upload a file, when I try again, if you upload the file, what you should not do is reload the page since I use Ajax to send this, I'm new to the subject and I've searched a lot and I...
asked by 06.04.2018 / 06:33