Questions tagged as 'javascript'

1
answer

Create columns with the foreach of knockoutJS

Good afternoon, I wanted to 'break' a list of items in 3 columns of 4 items in a foreach of knockoutJS. That is, at this point the list is populated down and I would like it to be broken via jQuery or javascript because CSS is not supported i...
asked by 22.03.2016 / 18:42
3
answers

How to group equal values with JSON

Using the following code construct a select of options: $(document).ready(function () { var customersSource = { dataType: "json", dataFields: [{ name: 'Estado'},{ name: 'OrderID'}], url: 'cus...
asked by 14.03.2016 / 13:07
1
answer

Display | Scrub a field when selecting data in Select

In this code the select appears with the Cities grouped as desired, but I would like to click on any of the select 'store' options to open in a table below the selected store address only. HTML <div> <select id="cities"></sele...
asked by 14.03.2016 / 15:51
1
answer

Focus on a browser tab with JavaScript

With JavaScript it is possible to focus on a specific browser tab, assuming I know which tab this is? If so, how?     
asked by 15.03.2016 / 15:16
1
answer

Filtering json data with schema attribute

I have JSON in this format: { "1": { "cidade":"cidade1", "name":"nome1" }, "2": { "cidade":"cidade2", "name":"nome2" } } I need to filter the data from this json. For this I made a model.js var mongoose = req...
asked by 25.05.2016 / 22:25
2
answers

Zoom in out mousedown

I have an SVG image, how can I create a small zoom (zoom in) when I step over the mouse, and return to its size when it left? I have the example: link     
asked by 06.04.2016 / 13:04
1
answer

How to send data to the database, compare and display the site?

I'm doing a site where I will add the section "My ideal skateboard", where the user will enter their name, email, age, height, style and experience (beginner, intermediate or professional). best skate style according to the profile. My questi...
asked by 06.04.2016 / 21:21
1
answer

Update a label with dropdown text

In my label all groups appear:    ABC There should only be one group chosen by dropdown, Example:    A JS: $("#GrupoID").change(function () { document.getElementById("grupoupdate").innerHTML = $("#GrupoID").text();...
asked by 21.03.2016 / 14:03
1
answer

How to check if the connection dropped before sending a data via ajax?

var erroEnvio = false; //global $(".proxima-questao").on("click",function(){ $(".loading").show(); $.ajax({ url: urlBase+"123123123/adasdasdasdas", type: "POST", data: $("#form").serialize(), success:funct...
asked by 29.04.2016 / 20:16
2
answers

Change selected menu according to URL segment in Angular

I'm developing a project and I'm using Angular, I need that when I access the internal page, the menu is selected, until the beauty, but problem is when the internal page contains slug or some inner internal, the code I'm using : Html: <...
asked by 29.04.2016 / 19:12