Posts by Carlos Lopes • 185 points
21 posts
-
0
votes1
answer33
viewsQ: Grouping into dynamic objects
My php is returning this data: {"question":"Name","answer":"jorge","qt":"1","graph":"table"} {"pergunta":"Name","answer":"Jorge","qt":"2","graph":"table"}…
jqueryasked Carlos Lopes 185 -
0
votes1
answer81
viewsQ: jquery store value during loop and compare with next value
I need to compare values that come in a json object and group cases to be equal. Ex: {nome: andre,qt:"2"},{nome: andre,qt:"3"},{nome: marco,qt:"2"},{nome: marco,qt:"5"} I need to group into separate…
jqueryasked Carlos Lopes 185 -
1
votes2
answers48
viewsQ: Separates result within each
I have an ajax function where I read the data within a $.each() , the image above contains the result of this each. I am trying inside this same each to separate in two arrays the data that coincide…
jqueryasked Carlos Lopes 185 -
5
votes2
answers947
viewsQ: Counting weeks between two dates
I am trying to perform a query between two dates that returns the number of the week and counts progressively the week. As an example : Stayed like this : SELECT…
mysqlasked Carlos Lopes 185 -
1
votes1
answer55
viewsQ: Reading array and saving with php
I am trying to save the result of this Json in Php but when I enter the answers foreach the data is incorrect in the database.…
phpasked Carlos Lopes 185 -
0
votes0
answers54
viewsQ: Php read and insert JSON into Mysql database
I am trying to perform an Insert of this json with php , but it is not being sent to the mysql database. Json I’m trying to read:…
phpasked Carlos Lopes 185 -
1
votes1
answer45
viewsQ: Surveyjs catch the title tag instead of the name in the result
I’m using the library of Surveyjs editor, but in the editor the result is being saved using the name as a reference to put in the result. Example : Survey Result:…
jqueryasked Carlos Lopes 185 -
0
votes1
answer56
viewsQ: Php separate json ond fields are default
I’m trying to separate a json string that returns from the database but has been unsuccessful so far. The problem is in the question tag, where the result is dynamic and will always be different. I…
phpasked Carlos Lopes 185 -
0
votes1
answer39
viewsQ: Jquery Object groups with same id
how can I create a group of objects where the id_question is equal within a $.each ? Object {id_pergunta: "63", resposta: "não", qtd: "5"} Object {id_pergunta: "63", resposta: "sim", qtd: "19"}…
jqueryasked Carlos Lopes 185 -
1
votes0
answers31
viewsQ: Create an object for each group of equal ids
how can I create a single object containing the data when the question id is equal and within a $ each loop ?…
jqueryasked Carlos Lopes 185 -
0
votes0
answers39
viewsQ: Jquery loop to read 3 objects and create 3 dataPoints for Charts canvas
I’m trying to accomplish the loop on the return of this request AJAX. In the first event success, I make a second call AJAX which will return - in this case - 3 objects JSON. My doubt is how to…
-
0
votes2
answers501
viewsQ: Group and add json return data with jquery
I have this Json that returns from the database, I need to consolidate the data that are equal but I have no idea how to do in jquery or php. If anyone has any suggestions! { "data":[ {…
jqueryasked Carlos Lopes 185 -
1
votes0
answers180
viewsQ: Jquery ajax load page in infinite loop
I have a button on a page that when clicking it performs the following code: Note: Whenever I click on this button it reloads a php page with html data, the jquery scripts. But there comes a point q…
jqueryasked Carlos Lopes 185 -
2
votes1
answer136
viewsQ: Read radio and text inputs from the same form
I need a light for something I’m doing. within a form there are several radios and some text box. I need to get all the data inside one objeto jQuery. below an example of how I do containing only…
jqueryasked Carlos Lopes 185 -
0
votes3
answers134
viewsA: reading return json_encode php with ajax
Here is the solution: Adjusted json to ->…
ajaxanswered Carlos Lopes 185 -
0
votes3
answers134
viewsQ: reading return json_encode php with ajax
I get this return with json_encode by php but I am not able to read it in ajax Success, what I am doing wrong?…
ajaxasked Carlos Lopes 185 -
0
votes4
answers440
viewsQ: Multiple ajax requests using jquery
I have this code over and over and I wanted to simplify it into a kind of plugin or function. Information I usually use, Type => 'get' or 'post' and the url, and the return I deal with in…
-
0
votes1
answer935
viewsQ: Import Excel to mysql in php
I am trying to perform an importer in php where in the input file I select the file and import the button Submit. it occurs that on this line " $data = new Spreadsheet_excel_reader("path of file");"…
phpasked Carlos Lopes 185 -
1
votes2
answers48
viewsQ: Return one of the functions in jquery.
Hello is it possible to return separately one of these two functions that are within another function ? For example depending on the situation I want to return the result of the question Function…
jqueryasked Carlos Lopes 185 -
2
votes1
answer367
viewsQ: How to send JSON to PHP?
How to send this object by ajax, and read on php? //Aqui crio o objeto com os inputs var obj = new Object(); var objectsRadio = $('input:checked').map(function(i){ obj.id_varejo = id_varejo;…
-
0
votes1
answer640
viewsQ: Jquery create object containing form data
Hello I need a help , I’m trying to create an object containing all the data of a question/answer form. in php I create the radios so : <input type="radio" name="'.$row['id'].'"…