Questions tagged as 'ajax'

1
answer

Edit Image upload with Ajax and CodeIgniter

I have a difficulty that is as follows, I have a CRUD that the upload works correctly, when editing this CRUD I can edit all the data including uploading the image all without problem, however if I decide to edit only the data and not edit the i...
asked by 14.09.2018 / 21:43
2
answers

How to use AJAX in an iframe?

To contextualize: I'm trying to make only a part of my HTML page updated every 5 seconds. For this, I'm using AJAX. In the middle of development, I encountered a problem of not being able to return the object and my view at the same time, s...
asked by 14.08.2018 / 18:28
1
answer

Indefinite index in pass-through with AJAX

I am trying to send Blob binary data via Ajax to upload via PHP. However, I am not able to access $ _GET. Returns an error saying undefined index:    responseText: "No images found" When I comment the upload.php die () line:    respons...
asked by 08.08.2018 / 17:25
0
answers

Convert currency into 1,000.00 format [duplicate]

I am using a custom script that prints the value of the currency with comma, but it is not inserting a point in the case of thousands. Currently it prints like this: 1000,00 I need it to print this way: 1,000,00 Here is part of th...
asked by 07.08.2018 / 03:12
2
answers

Challenge create menu with ajax request ()

File json producto.json { "produto":[ {"categoria": "#home", "nome": "home"}, {"categoria": "#fotos", "nome": "fotos"}, {"categoria": "#contato", "nome": "contato"}, {"categoria": "#perfil", "nome": "perfil"...
asked by 07.08.2018 / 21:21
0
answers

Can I assign the same URL to more than one controller?

I'm trying to use AJAX $.ajax({ url : urlN, // <<- "/log" type: "post", success : function(json) { console.log(json); document.getElementById('content').innerHTML = json; } setInterval(refreshDiv, 5000);...
asked by 09.08.2018 / 19:40
0
answers

Ajax Request with header Authorization

I'm trying to make an ajax request but it needs a BASIC authentication, follow my code: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script>$(function(){$.post({url:link,contentType...
asked by 03.08.2018 / 16:03
1
answer

Two Ajax requests in the same function

When loading a page, I have two Ajax requests in a sequence that populate two select's with the options that come from different tables in the database. But only the first one is executed, the second does not even call. I've followed debuggin...
asked by 02.08.2018 / 17:32
0
answers

Request Ajax Request

<script> document.querySelectorAll('[wm-folder]').forEach(folder => { folder.onclick = function(e){ console.log('teste') } }) </script> <h1>Projeto</h1> <ul> &l...
asked by 13.08.2018 / 04:56
0
answers

Send a jquery variable via ajax to PHP

I'm trying to send data from a table via Ajax to PHP. I'm doing this by transforming the table into JSON and thus sending via Ajax to PHP. The scritp looks like this: <script type="text/javascript"> $('#converter-tabela').click( func...
asked by 04.07.2018 / 17:29