Questions tagged as 'javascript'

2
answers

Error in ngModel call

I'm trying a 'Can not read property' reason_social 'of undefined' error when calling a ngModel in my html. I created an interface like this: export interface IEmpresas { nome_fantasia : string; razao_social : string; cnpj : string;...
asked by 26.05.2018 / 17:30
1
answer

Performs the operation but displays error at the end

I have the code below that is taking me seriously. No people are possible! // JavaScript Document// JavaScript Document $(document).ready(function(e) { $("a.excluiFalecimento").click(function() { if (confirm('Deseja Excluir esta N...
asked by 26.05.2018 / 00:17
1
answer

how to create output event in click on JS

I'm using this function for when an icon is clicked the menu disappears. let sidebar = document.querySelector('.sidebar-page') let sidebar_toggle = document.querySelector('.sidebar-toggle-box') sidebar_toggle.addEventListener('click', functio...
asked by 25.05.2018 / 18:58
1
answer

Is there a standard for naming the keys of a JSON?

I'm consuming a JSON, and I want to use the keys of this JSON as a select's options, however the nomenclature is in camelCase and no accents, eg "destaques": [ { "fornecedoresCompany": [ { "5OouMaisFunci...
asked by 12.07.2018 / 20:57
1
answer

javascript - Uncaught TypeError: Can not read property 'odd' of undefined

Hello In my JavaScript code I get the following error:    "Uncaught TypeError: Can not read property 'odd' of undefined" Since I'm new to the area, I do not understand how to solve the problem, can you help me? case 'multiple_2_3':...
asked by 12.07.2018 / 11:42
2
answers

Allow the submit to appear only when DEFAULT fields are filled in PHP

I need the DIV with Submit: <div class="botaonovochamado"> <input type="submit" name="CODIGO" value="Novo"> </div> Only appear when certain fields are filled in. For example: <select name="tipobroblema" id="tipopr...
asked by 23.05.2018 / 13:53
1
answer

How to send current screen resolution to PHP (on first upload)?

I know there are several ways to get the screen size by javascript, etc. but I have not found a satisfactory way to get this size to PHP BEFORE loading the screen. For example, I would like the HTML / PHP file below to get the width of the sc...
asked by 23.05.2018 / 20:03
1
answer

Load select text in input

Hi, I need help with this code, I want the input to be loaded when the select changes the value. But I can not change anything in select, because it's an adaptation I'm making in Prestashop. <html> <head> <title>TESTE</...
asked by 23.05.2018 / 13:43
1
answer

Get JS Variable value and pass to PHP and send by URL

I have the following code below. I want to know if there is a way to send through the URL a variable that was passed from JS to PHP. The code intension is to pass the variable after clicking the button. NOTE: The user will be directed to this...
asked by 23.05.2018 / 16:39
1
answer

How to do nothing when clicking the same div # box1?

I want when I click on the id box1 div 2 times or more do nothing using Jquery and / or javascript $(document).ready(function(){ var exe=false; var nuns=0; $('div#box1').on("click", function(){ if(nuns==0){ if(exe!=f...
asked by 02.07.2018 / 10:58