Questions tagged as 'javascript'

1
answer

Fill a ListBox with data from checkBoxes

I'm having trouble populating my Listbox, I can populate the Listbox with the checkboxes values of the not with the corresponding Labels. I'm running short of how I'm going to do this. The checkboxes list is populated with jquery, in the foll...
asked by 19.04.2016 / 19:03
1
answer

Stretch canvas without interpolating image

I have a canvas of width = 400 but, with S tyle.width = 100% , the image interpolates and the right angles of the pixels blur. I want to keep the pixels very visible, if anyone can help me I'm very grateful.     
asked by 11.03.2016 / 22:05
1
answer

Timepicker in dynamic input jquery

I needed to add the datepicker plugin to inputs that are added dynamically through a jquery script: Here is the script I'm using: $(document).ready(function() { var txtQuantidade = document.getElementById("txtNumDias"); var divForm = docum...
asked by 11.03.2016 / 18:52
1
answer

Insert elements using JavaScript insertBefore

I'm trying to perform an insert operation in my JavaScript code, but I'm having a hard time using the insertBefore function. First, I'm creating an element of type "ul" and inserting it like this: var novaLista = document.createElement("u...
asked by 14.03.2016 / 01:51
1
answer

Directional Arrows in Object

I did a city search using Javascript. There is a text field in which the user types the city name. And while he is typing the letters, the respective cities starting with that letter appear in a ul > li under the field for the user...
asked by 11.03.2016 / 18:44
1
answer

Calculate the closest point and trace route in Google maps

Well, I'll try to be brief and clear at the same time, I'd like to know how I can calculate which point is closest to my location, I have markers all over the map already, and I have my location, the only problem is I calculate to see which is th...
asked by 13.03.2016 / 22:53
1
answer

AJAX override variable

I can not copy the result to the variable registroJson , I've already lost almost a day in this problem: $(document).ready(function(){ var registroJson = []; var url = 'xpto'; $.getJSON(url,function(data){ registroJson = d...
asked by 14.03.2016 / 15:47
1
answer

Google Chart - Bar Chart change Background (Background)

I have the Code: <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script><scripttype="text/javascript"> google.charts.load('current', {'packages':['bar']}); google.charts.setOnLoadCallback(d...
asked by 13.03.2016 / 15:26
1
answer

Adding elements to a Web page without reloading

I want to make a system to list records of a table in the database so that as soon as I add a new record, it automatically appears in the listing. I have the whole system ready only in PHP, but the new registration does not appear automatical...
asked by 07.03.2016 / 00:37
1
answer

Validate Form without page change

I have a certain input of type submit that when clicking acts on a pagina.php . I wanted to do this, but when I clicked it it would not change pages, but it would act on that pagina.php . HTML: <html> <...
asked by 06.03.2016 / 02:24