Questions tagged as 'javascript'

2
answers

Can not set property 'innerHTML' of null

I tested the code below and it returned the error: p1-rad1-RE_UP.html:35 Uncaught TypeError: Cannot set property 'innerHTML' of null at Object.listarTodos (p1-rad1-RE_UP.html:35) at p1-rad1-RE_UP.html:100 p1-rad1-RE_UP.html:35 Uncaught...
asked by 20.04.2017 / 14:58
1
answer

Animation by JS without errors in the console, however it does not work

Well, I'm creating an animation of the classic Metal Slug Tank, however, by creating the function and running it to animate the tank, nothing happens. What's wrong, and how can I fix it? <body> <div id="tank-slug"> </div...
asked by 20.04.2017 / 16:47
1
answer

How to take a selection from an input type="image"?

I'm programming for the web not long ago, and I can not get a selection that stays when I click? Does anyone know how to take it?     
asked by 15.05.2017 / 21:37
1
answer

Is it possible to execute an external page on the client and get the JSON result using PHP?

Good afternoon! It is the following, I have a URL of a forum on the Internet that when it accesses it it returns in the JSON format the last posts viewed by a certain user. Since it is external, I do not know how it works and I believe it is...
asked by 16.05.2017 / 20:52
2
answers

Notification button update

I have a notification button in my software where I wanted it to automatically update itself. Then I made the following code: setTimeout(mostrarNotificacao, 90000); function mostrarNotificacao(){ //function mostrarModal(idPedidos){...
asked by 18.05.2017 / 04:30
2
answers

Getting URL Variables in One Page, and using in another

I have a link in which I get the parameters in the url completely, in case it points to an HTML where I have my inputs, and I get the URL with the parameters, what I need and get the variables from that URL and use it on another page when giving...
asked by 24.06.2017 / 02:08
2
answers

Stylized Input Radio does not pass Post

Opa, I have a radio butt that via css are exchanged for color. <div class="radio-cores"> <input type="radio" name="cor" value="1" /> <label class="product-color-blue"></label> <input typ...
asked by 23.06.2017 / 17:20
1
answer

JavaScript Semaphores

How can I create semaphores in JavaScript? I have an asynchronous script that runs n times, I would like it when the n tasks terminate another task to be executed. I used normal access to a variable but this can cause race condition. Promise...
asked by 23.06.2017 / 15:21
1
answer

How to draw 2 images on canvas with different fps

Let's imagine 2 images imagem A and imagem B , I want to draw imagem A at 60 fps, and imagem B at 30 fps. I wanted to know (using the requestAnimationFrame) what is the best way to do this, should I create another c...
asked by 21.06.2017 / 19:07
2
answers

Correcting or preventing display of "Script Error" [closed]

In Delphi I call an HTML page that displays some graphics made with jChartFX within a TWebBrowser , are working normally, but clicking any graphic it shows me this Script Error alert: I'd like to know if code looks l...
asked by 21.06.2017 / 23:28