Questions tagged as 'javascript'

1
answer

My Javascript gives syntax error in Chrome and Safari but does not give error in Firefox?

These are my files: <script type="text/javascript" src="js/jquery-1.9.1.js"></script> <script type="text/javascript" src="js/jquery-ui.js"></script> <script type="text/javascript" src="js/bootstrap.min.js...
asked by 04.02.2014 / 20:22
1
answer

Make the code wait for a user input to run an action, and then prompt the input again

Hello, I came across a problem trying to develop an algorithm for a small text-based rpg (based on the SoloLearn Python course) in Javascript, and I've been trying to figure out a way to get past it without breaking the logic, which would be " th...
asked by 27.07.2018 / 18:34
1
answer

Custom resize of a div

How to customize resize so you can resize anywhere in the bottom of div Example of stackoverflow itself: .caixa { background-color: #444; /* margin: 100px auto; */ height: 100px; width: 400px; resize: vertical;...
asked by 11.08.2018 / 03:06
1
answer

What is the JavaScript Map object for?

This also seems to be another JavaScript novelty: the object Map . Unlike the Set , which I already I have an idea how it works and I saw it in other languages, Map is something I did not see in any language I worked on. Wha...
asked by 12.07.2018 / 19:36
1
answer

How to create a placeholder when loading page content, same as facebook, youtube, etc.

This is a question asked on various websites, and before I came here, I asked a lot, even on the stackoverflow in English. Well the part of the placeholder in html and css is already ready, I got following tutorials on several sites, missing...
asked by 16.06.2018 / 19:51
1
answer

Matrix Ordering with Values Exchange

Good afternoon! I mounted an array that receives 9 records from a single variable and the values are displayed on the user's screen. However, when trying to put this array in ascending order, I tried to use the value exchange method, but at the t...
asked by 11.12.2018 / 22:03
1
answer

Sum returns NaN for values above 999

I have a function that calculates subtotal + ascrescimo - desconto , however I was testing a value above 999 it returns NAN . //função para calcular o total da nota function calcular() { var soma1 = 0; $(".subtotal01").e...
asked by 14.11.2018 / 17:34
1
answer

How to create Interface in JavaScript?

I think a lot of you know about the Interface concept, which is very widespread in OOP, but in JavaScript in all the projects I've worked on until today I have not seen this concept. I researched a little bit about, but most posts are old, s...
asked by 18.11.2018 / 00:22
2
answers

Do not allow repeating values in different DropDownList using jQuery?

I have 3 DropDownList where they have 4 items with the same valor (1,2,3,4). I need to respect that every DropDownList does not repeat the value selected in the others. Example: ddl0= 1 ddl1= 2 (não permitiria escolher...
asked by 17.12.2018 / 20:48
2
answers

Long Polling with mysqli does not return data

The data from the database's .php file does not return, if I change the whole data.php to any html text it returns working the long polling , but if I try to use mysqli it does not return anything. What can I do to correct this problem?...
asked by 09.01.2015 / 00:29