Questions tagged as 'javascript'

1
answer

Find list of Json objects from the localStorage by the name of their keys

I know that the localStorage of browsers stores data in key-value format, and that I can retrieve Json objects saved there through the key. Now what I need to do is recover all the records whose key starts with "Deposit". This is because I want...
asked by 29.04.2018 / 16:43
3
answers

List value of checkbox items

How do I list checkbox values when the user select and when not selected does not appear in the list? / p> <select class="form-control" id="list-lugar"> <option value="0" disabled="true" selected="true">-</option>...
asked by 27.04.2018 / 19:34
2
answers

Is it possible to mirror an image horizontally (flip) with Canvas?

I know it's possible to mirror a <img> horizontally with CSS, but wanted to know if it is possible to mirror an image horizontally within a canvas . With CSS, I would do so: #img-flip{ transform: scaleX(-1); }...
asked by 03.05.2018 / 21:17
1
answer

How to place an iframe in fullscreen (full screen)?

I made this small player to be used within iframe . But I need to give you the option to put it full screen (as most video players I know), but I have no idea how to do it. I'll leave the player here as an example: var...
asked by 04.05.2018 / 16:56
1
answer

Controller message for the view

I did this: [HttpPost] public void CadastraUsusario(string _nome, string _usuario, string _email, string _nivel_acesso, bool _ativo) { using (RupturaEntities db = new RupturaEntities()) {...
asked by 02.09.2014 / 20:28
3
answers

How to pass value changed dynamically to function, in AngularJS

The itemCode, itemDescription, itemPreco, and itemQuantity fields are populated dynamically (at run time, without refresh ) from a query performed in the database. However, these values, when passed as a parameter to the addItem () function, re...
asked by 20.12.2016 / 13:25
1
answer

How to put inside a variable only the text that was selected inside a textarea?

With var texto = document.getElementById('texto').value; I get everything that is in the tetxarea that has this id, but what if I want a partial text? For example the whole text is this: Germany bought the game against Brazil If...
asked by 10.05.2015 / 23:15
2
answers

Why does not this menu work in the mobile version?

I was looking for menu templates / layouts and found that pretty cool, but when I passed google to the cell phone view when I clicked on the menu the 1st ball would come and go, instead of coming all of them and staying there until I clicked t...
asked by 05.05.2015 / 21:37
1
answer

Perform mathematical calculations with values from a PivotTable

I have a table in form-wizard that as soon as I click on "add item" I call a function and it adds a row in the table to add a new item to be purchased by the client. This table with each click adds an item has an autocomplete function in the...
asked by 26.06.2014 / 20:08
1
answer

How to apply a function to multiple objects? (Pure Javascript)

For example, I have div inside a variable obj obj = document.getElementById("objeto"); I want a function to be applied to it, so window.onload = function(){ window.onclick = function (){ obj = document.getElemnt...
asked by 10.07.2014 / 18:42