Questions tagged as 'javascript'

1
answer

How to change the image when hovering over

I'm doing a service area of my site (wordpress), and I would like to add only images in it and when the user hover over these images that image change to another one so with the name of the service that was the first one ... I would like to k...
asked by 16.09.2017 / 09:38
1
answer

Problem in executing query in Elasticsearch

When trying to search the elasticsearch using elasticsearch.js I used the following code below: var cliente = new $.es.Client({ host: 'http://localhost:9200', log: 'trace' }); var cliente = new conectES(); cliente.search...
asked by 09.08.2017 / 15:07
2
answers

Doubt about where to put the JS script

I'm working on a dashboard for a website where you have two JS functions at the bottom of the page that will only be used on a page that will be opened in a modal. On this site there is also a file dedicated only to scripts. I would like t...
asked by 15.08.2017 / 15:30
1
answer

Show result JSON via Ajax

I'm not very knowledgeable about javascript, but I need to integrate a payment API. I've never done integrations with any API before. Following the documentation I saw that you first need to generate a transaction token. So I have this...
asked by 16.08.2017 / 20:01
1
answer

Angular Application does not load in browser

I'm having trouble loading my application into my browser. The url works however the screen does not show any content, it does not show the html of the view. Follow the index.html: <!DOCTYPE html> <html lang="pt-br"> <head&g...
asked by 15.08.2017 / 21:52
1
answer

Generate Separate Length for each object

Hello, all right? How do I generate a corresponding number for each object, example { "api": "api", "List": [{ "tipo": "1", "data": "10/10/2017", "Hora": "11:38", "Size": "0", "Nome": "Marcelo...
asked by 10.10.2017 / 07:49
2
answers

Solution C # MVC does not execute JavaScript in IIS

I have a C # solution where I use MVC. In it I have a View for inclusion of product items. In this view I have a DropList as specified below: Drop List <div class="form-group"> @Html.LabelFor(model => model.ProdutoId, "Prod...
asked by 11.10.2017 / 19:26
2
answers

Is it possible to read a .txt file in JavaScript?

If it is possible, how would you do it? I have a file called version.txt , and I need JavaScript to read it and display its content on the screen. Does anyone have any idea how I would do this? PS: please I would like a code without using json...
asked by 13.10.2017 / 21:12
2
answers

How to change the color of the text?

<html> <head> <title>Efeito digitar em página web</title> <script type="text/javascript"> var posicao = 0; var mensagem = "Sua mensagem aqui "; //Esse texto...
asked by 03.08.2017 / 17:05
3
answers

PHP + Javascript countdown

I have a column in the database named time , it has an event that does the following: UPDATE users SET time = time - 1 As default you get 1800 seconds (30 minutes) right? Now I wanted to recover the decaying time I tried the foll...
asked by 02.08.2017 / 13:53