Questions tagged as 'ajax'

2
answers

Criteria on dynamic inputs

I have a dynamic input that checks the date the user selects and then returns the available hours for scheduling, however when the user selects the date of the day (data = hoje) I would like the hours that have passed to be deleted from t...
asked by 28.06.2016 / 21:15
1
answer

How to get value from a variable in the controller with ajax (jquery)

I have to get a value from a variable inside a method in the controller in .net, the method is in the homeController and returns a json, so alright the code is running and returning the json perfectly but I have to get a value of a variable alre...
asked by 02.08.2016 / 19:40
1
answer

JQuery / Ajax - How to keep the page updated?

I have a page that loads with $ .ajax () from JQuery, ajax pulls a page in php with a database that is updated constantly and I need to keep the page up to date, how would it be the best way? I've read about using a setTimeOut( '', 2000 );...
asked by 04.08.2016 / 16:40
2
answers

How to make the PaiChild relation between two select elements?

I am making two elements Select an "Area" and another "Problem" and need to relate to each other, in the problem DB table is the FK spr_sar_code referring to the sar_code of the Area table. I am not able to interact so that the select problem de...
asked by 19.09.2016 / 18:55
2
answers

How to execute a code only after finishing another?

I need to run the city search only after finishing loading the states within the select and capturing the ID . I'm getting this ID to send another Ajax that will populate the cities of this state within another select. What is ha...
asked by 20.10.2016 / 15:56
3
answers

Assign value received from $ .ajax to the variable

It is possible to associate a value received with $.ajax with a global variable, because from these values, I need to add them and show them in another table. I have tried it however it always interprets with local variable, losing its va...
asked by 24.05.2016 / 04:18
1
answer

Laravel - Test script errors to return certain status to AJAX

In an application in Laravel I have several scripts using ajax. All expect a response from the controller script and, if true, I run a certain function with ajax ' success ' Example of how I'm doing: script.js $.ajax({ type: 'GET',...
asked by 11.05.2016 / 17:04
1
answer

WebSerivce only accepts requests from local server [closed]

I have a Webservice in PHP and I need to use it to integrate two applications. WS returns in JSON the data I need. The problem is that it returns only the data when the request is made from a local server. If I do the request from any web do...
asked by 09.05.2016 / 20:45
2
answers

Redeem checkbox data stored in the database

I am writing data from 6 checkboxes in the bank. I'm treating each one separately, as below: <tr> <td>Tabela Nutricional:</td> <td><input type="checkbox" name="export_tabela[...
asked by 14.01.2016 / 11:51
1
answer

Fomulário inside form php / ajax / js

At first glance, the title already shows the error, but this is the process I need but I have no idea how to do it. Given a simple form for example: <form method="post" action="trata_form.php"> <input type="text" placehold...
asked by 22.08.2016 / 22:32