Questions tagged as 'javascript'

1
answer

Click event on an SVG

I have a map of Brazil, in an SVG, where I would like to present a div to each state when clicking on it. I managed to work with color change with hover using ID of each state of Brazil: function highlight_map_states(){...
asked by 13.04.2015 / 23:53
1
answer

How to remove alert from "Uncaught RangeError: Maximum call stack size exceeded"

I have a .js file on my site where I put some effects and everything. The problem is that you are acknowledging an Uncaught RangeError: Maximum call stack size exceeded alert and I do not know what it is. Is it a code error? Because a...
asked by 09.04.2015 / 15:56
1
answer

Receive onclick data and send to js

I'm building a page with a table, which will plot a chart. test.html <html> <head> <title>Teste</title> <style> body{ margin: 0px; padding: 0px; } </style> <script src...
asked by 15.04.2015 / 05:04
2
answers

Get values from selected checkboxes and their respective prices

Well, I'm developing an online ordering system, initially just for learning purposes, but I came across something that I have no idea how to do and would greatly appreciate any kind of help. In the products.php page I establish two connection...
asked by 10.04.2015 / 13:17
1
answer

JavaScript error when opening page - Uncaught SyntaxError

When I open the page it breaks and when I open the browser console the following error appears: Uncaught SyntaxError: Unexpected token ; When I see the code on the console it looks like this: if (linhaAnterior$.size() &gt; 0) {} Bu...
asked by 08.04.2015 / 15:01
1
answer

Array problem in javascript

I am trying to use the contents of a variable as the name of an Array, but it is returning a letter of the contents of that variable. Example: var posicaoArray = 2; var nomeArray = "frutas"; var frutas = new Array(); frutas [0] = "Banana";...
asked by 28.04.2015 / 20:06
1
answer

Validation configuration in dynamic fields with groups

Scenario: The client today has a place in the system, specific to register fields for a process that will be automated, these fields that are registered can be (selects, checkbox, radio, textarea and text) fields linked to an activity of this pr...
asked by 18.12.2015 / 13:40
1
answer

Return in each getJSON - Jquery

I would like to know the following how do I give return in a function created by me in a situation below. For always returns undefined object, but when I give an alert it returns the normal object. function jjson(url){ var result...
asked by 30.04.2015 / 21:43
2
answers

Make Tooltip appear when clicking inside the input

I have the following problem. I have this js code: // Tooltip $("#sel-tooltip").select(function startTooltip(){ $(function() { $('.tooltip-icon').tooltip({ placement: 'top', title: 'Sinta-se em casa!' });...
asked by 17.04.2015 / 09:09
2
answers

Enable button event when pressing key on keyboard

I'm developing a calculator, and I need when the user presses the enter key as if he was pressing the igual key. The calculator is within form , so I use this code to disable Post of form . <script>...
asked by 16.04.2015 / 20:49