Questions tagged as 'ajax'

0
answers

Fill table with Ajax and codeigniter

I am trying to update a table depending on the selected date start: yyyy-mm-dd end: yyyy-mm-dd when selecting this data load my ajax $.ajax({ type:'POST', dataType:'html',...
asked by 08.05.2018 / 06:59
2
answers

Load Json data with Ajax and Highcharts

I have this .json :    [ { "id": "bitcoin", "name": "Bitcoin", "symbol": "BTC", "rank": "1", "price_usd": "9433.76", "price_btc": "1.0", "24h_volume_...
asked by 08.05.2018 / 12:34
0
answers

registration with PDO

I have this error Fatal error: Call to a member function prepare() on a non-object insertion code $adam2=Conexion::conectar(); $fech = $_POST['fech']; $hora = $_POST['hora']; $ced = $_POST['ced']; $nom = $_POST['nom']...
asked by 09.05.2018 / 22:18
2
answers

How to know the value of an array

I recently left a code about how to create dynamic ids in a while cycle. Now I have this other doubt. <?php $i=1; $n=1 while($fila=$consulta->fetch(PDO::FETCH_ASSOC)) { $this->empleados[]=$filas; $Filas = consult...
asked by 08.05.2018 / 16:21
1
answer

How can I make an elapsed date calculation

basically I have a date type imput where the user places the date in which I joined the company, after that I want to show in other input the elapsed time (basically something like this: 1 year 3 months, 0 year 6 months ), To the current date. I...
asked by 09.05.2018 / 01:26
0
answers

I have a problem with a request by ajax to my database in Laravel 5.6

I just made a request for data by ajax to my database, but I answered the following:    Failed to load link : Redirect   from ' link ' to   ' link ' has been blocked by CORS policy: No   'Access-Control-Allow-Origin' header is present on the...
asked by 08.05.2018 / 18:47
1
answer

extract function variable within JavaScript call

I have a call with JavaScript and I want to manipulate this data further in other functions, as I could do .. this is an example of my code ... $.get("https://api.test.com/", function (data) { variableGlobal = data[0].one; }, "json"); also...
asked by 06.05.2018 / 03:52
0
answers

How can I reload an image with ajax after uploading it?

I have to upload an image to the server and show it on the page once it is uploaded, the first time everything works normally, the problem is that it is cached when it is uploaded and it does not change unless the browser is refreshed. This is t...
asked by 07.05.2018 / 04:55
2
answers

How to know the value of an array

I recently left a code about how to create dynamic ids in a while cycle. Now I have this other doubt. <?php $i=1; $n=1 while($fila=$consulta->fetch(PDO::FETCH_ASSOC)) { $this->empleados[]=$filas; $Filas = consult...
asked by 08.05.2018 / 16:21
3
answers

Select dependent with ajax and laravel for an edit view

I'm currently working on an edit view http://127.0.0.1:8000/dgj/editar_ejuridica/7 , I have two dependent select 'has (' city ')? 'has-error': ''}} ">                                              *City:                                  ...
asked by 06.05.2018 / 02:18