Questions tagged as 'javascript'

1
answer

JavaScript with two loops for

I would like to leave my script with select and checkbox's aligned, but I'm not getting it, first comes the values of the options and then the check's. For example: 10 DESTINOA_111222 DESTINOB_111222 DESTINOD_222333, but the right one I'd like w...
asked by 21.11.2014 / 22:22
1
answer

Measure distance between polygon points SVG

I created a very simple% color with a triangle. <svg class="triangulo" height="210" width="500"> <polygon points="200,10 250,190 160,210" style="fill:lime;stroke:purple;stroke-width:1" /> </svg> And what I want to know...
asked by 23.08.2014 / 19:26
1
answer

Catch value on an item checked from a checklistbox

I have this checklistbox. <div class="col-md-6"> <h3 class="text-center">Unidade de negócio</h3> <div class="well" style="max-height: 300px;overflow: auto;"> <ul class="list-gr...
asked by 25.08.2014 / 17:41
1
answer

dynamic div + php

I need a table that is updated every instant automatically, like the facebook timeline that updates itself. I think in jquery you can do this, does anyone have any ideas?     
asked by 22.08.2014 / 14:24
3
answers

Trigger an event using pure JavaScript

I would like to know how to dispatch an event using JavaScript. I tried using the following code: var atual = document.getElementById('teste'); atual.addEventListener('mouseover', function(){ alert('HUE HUE HUE BR') }); atual.dispatchEvent('mo...
asked by 22.08.2014 / 19:44
1
answer

Replace javascript does not work in general [duplicate]

Why when I do: "1.000.000,00".replace('.',''); It returns me: "1000.000,00" How do I make it work with all the characters? which would look like this: "1000000,00"     
asked by 30.07.2014 / 21:01
2
answers

After selecting with Select2, how do I automatically fill in form fields?

I am creating a form that has a field that the user will enter the company name and Select2 will perform a search in the DB and return the company name to the field, example in the image below: HTMLscript:<scriptlanguage="JavaScript" type=...
asked by 28.07.2014 / 16:16
1
answer

Change and disable field after a selection

I think I already have a question answered more or less with what I want, but I do not handle much of js and I was not able to filter the necessary information in the ones I read ... THEN! I would like to know how I could do so that as soon a...
asked by 09.06.2014 / 06:11
1
answer

How to clean only the current tab!

I have a menu of tabs, and I would like to refresh only the tab I'm in, keeping the other's data. Menu: <body onLoad="AlternarAbas('td_cada','div_cada')"> <table width="100%" height="100" align="left" valign="top" cellspacing="0"...
asked by 03.07.2014 / 16:49
1
answer

How to pass the variable via $ _POST

I'm creating a code snippet where I assign the entered data to a array in javascript and moving on to the next program. But the problem is that if I use $_GET it can not support when it reaches a maximum number of characters...
asked by 02.10.2014 / 14:29