Questions tagged as 'ajax'

1
answer

Ajax sends php query in Mysql

Hello friends I'm studying Ajax I'm trying to make this run of code work, but I still can not. I am trying to do after form produtos be selector is sent to consultarcor.php via Ajax the information to query the colors of each selec...
asked by 29.06.2016 / 15:11
1
answer

Shopping cart sql, php and ajax

I'm doing the shopping cart and would like to know if I should save the products that the user is buying in a table or not, what logic to always show the right product for the right user? I know that I can use the id of the user plus all the c...
asked by 01.07.2016 / 05:54
1
answer

Problem with Dynamic Input

I'm developing a dynamic input that checks whether the database has a value if it does not appear in the input, but I'm having problems with my logic: <?php session_start(); require_once('library.php'); $hoje = date('d/m/Y'); $amanha = date...
asked by 28.06.2016 / 15:41
2
answers

Error Querying in MYSQL [duplicate]

I am trying to query and return to the user via Ajax and the following errors are being displayed:    Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result, boolean given in line 77 - > while($experiencia = mysqli_fe...
asked by 21.06.2016 / 02:51
1
answer

How to not duplicate items in a list returned from json with ajax

I'm having problems, basically I'm doing a search on products with like, but it's duplicating the products, I'll attach an image that clarifies better. $(document).ready(function(){ $("#search").on( 'keyup', function () { var pesquisa =...
asked by 07.07.2016 / 20:58
1
answer

Doubt - Session with AngularJS + PHP

Well, I'm breaking my head here, I've already sifted through the internet, but I still have not been able to resolve an issue. I'm creating a Quiz application using AngularJS, but I'm not able to create a session, or any other way to write certa...
asked by 06.06.2016 / 20:41
1
answer

JSF + Primefaces update component when exchanging pagination

<p:dataList paginator="true" value="{bean.lista}" var="lista"> </:dataList> <h:outputText value="qualquerCoisa" id="teste"/> How do I update the outputText 'test' every time the dataList page...
asked by 13.07.2016 / 00:39
1
answer

Loading link on the same page, no refresh! [duplicate]

Good evening, good evening I need some help for something that seems very simple but I did not find anything on the net that could be applied. Well, come on: I need the contents of a link to be shown in an input field on the same page, w...
asked by 17.07.2016 / 23:19
2
answers

Return Multiple values with PHP jQuery

I have a function that returns me the values of a Grid in a Modal I call the function it does a Select in PHP and it returns me the data inside a Modal. But in addition to bringing this data I need to bring image names that are in another table...
asked by 18.07.2016 / 20:45
1
answer

Capture datetime ajax with jquery

I have an array containing some objects from an AJAX call. The values are being passed through a date: " res.data.tags " In one of the objective answers the following result: 2016-07-15T10:00:00-0300 How do I capture only the "10:00" v...
asked by 16.07.2016 / 01:49