Questions tagged as 'javascript'

1
answer

Return JavaScript script with Node.JS

Using Node.JS I want to read a JavaScript script in a folder and return it. It turns out that when I access the file through the browser, the code appears normally. However, the script is not embedded in the HTML page using the <script>...
asked by 03.09.2017 / 02:40
1
answer

How to get the HTML of another page

I'm trying to make an extension to the chmap, which when I find a field with the html element of cpf, it generates a cpf and adds it to the field and I have the following problem: How can I get the html from other pages in a domain for exampl...
asked by 21.08.2017 / 21:10
1
answer

Bootstrap .nav-pills active

I have the code, which when clicking another link opens the page and adds the class .active I have already tried several scripts and nothing works. <nav> <ul class="nav nav-pills float-right"> <li class="nav...
asked by 15.08.2017 / 16:43
4
answers

Automate button click [closed]

I need to automate the action of a button click by some script (Javascript), could you help me? <!doctype html> <html lang="en" class="no-js"> <head> <meta charset="UTF-8"> <meta name="viewport" content="widt...
asked by 16.08.2017 / 14:26
1
answer

Change the Selection within a Select (form)

Good afternoon, I would like you to help me with the following: I have 3 buttons which open the same MODAL, and within this Modal I have a Select with 4 options: 0 by default, and 3 options from 1 to 3, where each one corresponds to a button. Wh...
asked by 16.08.2017 / 17:41
1
answer

Read using data from an external json file without jQuery

I have an external json file and I want to use its data in several functions that I have, but I can not, only when I put all the json inside a variable. I researched and ended up finding this example: function fetchJSONFile(path, callback)...
asked by 15.08.2017 / 23:43
1
answer

Filter Select elements with PHP

I have to create a select filter to perform a search between multiple select results <divclass="grupo"> <!-- class="borda select2_single form-control comboauto" --> <select name="id_projeto" id="id_projeto" class="borda se...
asked by 14.08.2017 / 19:06
1
answer

Angular 1 reading JSON cross-domain

I'm having a little problem with angular and wondered if anyone can help me, I was asked the following task to make a shelf from the products of an external JSON (where you have all the info of each product). const API_URL = '/caminho/para...
asked by 12.08.2017 / 06:17
1
answer

Shopping cart item is not removed

I have a dynamically created shopping cart, but the problem is that when I delete an item it even removes it, but if I try to add another item it picks up the one that was removed and adds it back to the shopping cart plus the item that I've add...
asked by 11.08.2017 / 16:18
1
answer

Why is a the value of an input type number and a string not a number?

I am wrong or if I get javascript with the value of an input type number will it be a string and not a number?     
asked by 12.08.2017 / 00:50