Questions tagged as 'javascript'

1
answer

Problem with Post ajax and Javascript Object

I have the following problem, I have a constructor function that will mount an object for me: var companyConstructor = function Company(id, logo, name, language, primaryColor, secondaryColor, description, headOffice, serverInfo, serverAddress,...
asked by 27.03.2014 / 19:38
1
answer

Hiding inserted elements with append

I have this code: db.transaction (function (tx) { tx.executeSql('SELECT * FROM cartoes WHERE usuario = ${0}', [], function(tx, results){ for(var i=0; i<results.rows.length; i++) { var nomeEmpr...
asked by 28.11.2018 / 12:55
3
answers

Why use getElementById if the id is in the window?

Recently in my study I noticed an object that manipulated the DOM of the element that had the same name in its id . teste.style.border = '1px solid #CCC'; teste.style.width = '500px'; teste.style.height = '50px'; <div id="teste">...
asked by 13.04.2016 / 14:23
0
answers

Enable / Disable input when clicking on a checkbox [closed]

I have this code: function EnableDisableTextBox(quant_a0) { var txtquant_a0 = document.getElementById("quant_a0"); txtquant_a0.disabled = quant_a0.checked ? false : true; if (!txtquant_a0.disabled) { txtquant_a0.focus();...
asked by 21.11.2018 / 12:37
1
answer

Regex in word XML

I have an xml that came from a docx in this format: <w:p w:rsidR="00AE2D8E" w:rsidRPr="00AE2D8E" w:rsidRDefault="00AE2D8E"> <w:pPr> <w:rPr> <w:lang w:val="en-US"/> </w:rPr> <...
asked by 27.08.2018 / 22:04
0
answers

Difference between @ and ./ in import function

I would like to know the difference between the codes below: import module from '@module' import module from 'module' Recently I had a problem where I had to stop using import firebase from 'firebase' and put import firebase from '@f...
asked by 28.08.2018 / 16:49
2
answers

Prevent refresh after submitting on PHP pages

Good evening, everyone! I have a question and would like help, tips and more. I have a basic HTML form that sends the data through the POST method to the same page, ie I submit it to the page itself. Since this page has actions in Javascript, af...
asked by 27.08.2018 / 05:44
2
answers

Materialize Autocomplete does not load values

I'm having trouble loading values into the Materialize autocomplete. What happens is the following: $().ready(function() { $('#sel_estado').change(function() { $.post('auto_cid.php', {id_estado:$('#sel_estado').val()}, function(res){...
asked by 28.07.2018 / 14:20
1
answer

JavaScript function breaking image

Hello; I'm having a Technician project, and it has a list of games in it, I want to make it when I hover over the image, so I have the following: foreach ($lista as $jogo){ echo (' <div class="quad-Jogo box"> &...
asked by 26.07.2018 / 01:16
0
answers

Google BarChart, create Bar with 2 annotations

I have the following structure of a google barchart: google.charts.load('current', { packages: ['corechart', 'bar'] }); google.charts.setOnLoadCallback(drawMultSeries); function drawMultSeries() { var data = google.visualization...
asked by 27.07.2018 / 21:51