Questions tagged as 'javascript'

1
answer

Instagram API returns data on the network but does not return on callback

I have a strange problem and it looks exactly like this: I am consuming the instagram API and this happens the following thing: The return and display of the network tab of the devtools, but in the request callback, is done with XMLHttpRe...
asked by 30.10.2017 / 19:27
1
answer

Execute javascript function in php

I'm building a chat system in php, and in the onlines client checking function it's going to be an ajax calling a php file every 30s, and in this file there will be a foreach that will bring in each user and do the verification , and I need to m...
asked by 29.10.2017 / 22:28
0
answers

Keep selected multiselect values refreshing the page?

Hello, I have the code below that is a multiselect by category. What happens is the following, when the user fails to fill out a mandatory data, the page is reloaded and the message appears saying what data he forgot, but all the data already en...
asked by 13.01.2018 / 02:13
0
answers

Canvas2Image Script does not work in Chome [closed]

Good afternoon everyone, I'm developing an email signature generator here for the service. I got a ready script that uses the 'html2canvas' and the 'canvas2image' to turn the code into an image and then allow the user to save the image as .pn...
asked by 03.11.2017 / 16:53
0
answers

Calling PHP function in a class

Good afternoon, I'm creating a simple system in PHPOO with MVC and would like to execute a function inside the controller with a jquery call. I do not want to call the controller in html, I want a js to do this work for me. I tried to do this: M...
asked by 24.10.2017 / 19:37
1
answer

Graphics with PHP Chart.js

I am implementing graphics in my application made in PHP, using Framework Chart.js, passing the query data via JSON, to mount the chart, but when I render it it presents the following error: Followingcode:$(document).ready(function(){$.ajax(...
asked by 26.10.2017 / 14:49
1
answer

How to get input value and make an account

Hello, I'm new to the programming area, and I'm learning javascript. I decided to make a tool that calculated the AMA (slaughter, death, care) of a game I play. The bill is to add the killings with assists and divide by the deaths. So far so goo...
asked by 26.05.2018 / 02:56
0
answers

Jquery - Trying to clear a select

I have two dropdowns (select in html) one from UF and one from cities, when I select a state I want to trigger a function to populate the dropdown of cities, getting the state id as parameter. It is bringing all cities from the selected state an...
asked by 25.05.2018 / 16:02
0
answers

How to browse data from an HTM file?

I need to go through the data of a .htm that is zipped in this file.zip to get the date, numbers drawn and number of winners. But I have no idea how to do this in an automated way. Can anyone tell me what tool or technology to use to ge...
asked by 24.05.2018 / 04:23
1
answer

Sweeping String in Search of Substrings Ignoring Accentuation and Case and For Each Match Performing an Action

I need to search a string for a specific substring and for each occurrence found, I should perform a substitute action that was written in the bold version as listed, ignoring accent and case. Example: I have the list with the items:...
asked by 14.11.2017 / 18:08