Questions tagged as 'javascript'

1
answer

AngularJS is cleaning the parameters of Url

I have a system with Angular and Java. In the initial route I read the url parameters (some user information, such as code, etc.) and saved in $ rootScope to access throughout the application. If I access directly through the browser, it wor...
asked by 09.05.2017 / 13:37
1
answer

How can I create a bookmark in OpenStreetMap?

I wanted to know how to create a bookmark in OpenStreetMap via JavaScript, just like I did on Google Maps: marker = new google.maps.Marker({ position: new google.maps.LatLng(locations[i[1],locations[i[2]), icon: image, map: map...
asked by 08.05.2017 / 13:38
1
answer

How To Get Root Selected Jstree

Galera, Good afternoon, A Doubt, I'm using JsTree and I need some help. When I select child nodes: I can get the same through the script: $('#arvore').jstree(true).get_selected(). But I can not get the "Parent" nodes (th...
asked by 05.05.2017 / 19:59
1
answer

How does ER get masquerading an alphanumeric code?

I need to mask a 13-character alphanumeric code field while the user types, separated by a hyphen, such as: 0DF7M3-R34X21 I'm using a function to apply the mask, so it would be applied as follows: function mask_code(valor) { valor = val...
asked by 08.05.2017 / 17:47
2
answers

how to filter a json object?

I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2",...
asked by 07.05.2017 / 13:35
1
answer

Help with JavaScript filter

I have the following JavaScript code: JSON var json = { "tpAmbiente":null, "hotelPesquisa":[ { "dtEntrada":"20170510", "dtSaida":"20170511", "hotel":{ "id":94...
asked by 10.05.2017 / 20:44
1
answer

Copy text when clicking on a DIV [duplicate]

How do I, with JQuery preferably, click on the wave class div: $('ola').click(function(){ //FUNÇÃO DE COPIAR AQUI }); Does it copy a text? For example, when you click on the wave class div, it copies the text "Hello World"     
asked by 10.05.2017 / 13:15
1
answer

Creating tables through div

I would like to create a table structure that can have a variable amount of columns, for example, one hour might have only 3 columns and at another time it may have 5 or 6 columns, that number is not limited, that amount columns will not change...
asked by 10.05.2017 / 14:38
1
answer

Complete fields with select

I have a problem, which I can no longer solve, I am trying to fill the fields from an option that is contained within a select that is automatically populated with foreach , but it is not working <script language="JavaScript"&g...
asked by 14.06.2017 / 21:35
1
answer

Remove date and print link

I'm making a screen with lots of information and images, so be good. My problem is that when trying to print this screen, date appears in the header and the link in the footer. Is there any way to remove this other than by browser configuration?...
asked by 12.06.2017 / 19:51