Questions tagged as 'javascript'

2
answers

Traversing an array without knowing its indices

I have the following array: var array = { x: "Primeiro Valor", y: "Segundo Valor", z: "Terceiro Valor" }; I would like to access the values, but I do not know the indexes x,y,z , can you extract those values?     
asked by 11.05.2016 / 15:16
1
answer

Selector jQuery eliminating zero incorrectly

In the following case, you have a code being reported in the data-produto attribute of my input. $(".valor.partida").bind('blur', function(){ alert($(this).data("produto")); }); <script src="https://ajax.googleapis.com/ajax/lib...
asked by 19.05.2016 / 14:53
1
answer

How to do a Jquery that when selecting a radio button, I change the items of a select?

I'm creating an html site and I'm still a bit new to it. I'm doing a store registration screen. My problem is: when selecting a radio button, I want it to change the select (combobox) data. Example: Radio Button Institution, I want it to show in...
asked by 04.05.2016 / 23:00
4
answers

How do I leave the page open in the menu?

For example, on this site when you are on any page it is marked in the menu with a border-top: link I would like to know how I do this, I already tried the visited in css and nothing ...     
asked by 20.05.2016 / 03:45
0
answers

Send Email + Digital Certificate with Node [closed]

I need to send signed emails with digital certificate with node. Can anyone give me a direction on how to implement this?     
asked by 20.11.2015 / 16:49
1
answer

Resize submenu when page overflow

My category submenu, overflows the page when resized. How do I make the submenu go left when this happens? The problem AssoonasIwantittohappen,thesubmenuwasthrowntotheleftbecauseitwasoverflowingthepage #primary_nav_wrap { margin-top:1...
asked by 26.11.2018 / 17:17
2
answers

Only pop up 1x every 24h per user

I'm trying to manipulate cookies here with javascript, so I'm trying to put it in, which only pops up once every 24h per user, but it pops up every time I enter the page. Here's my code, where am I going wrong? Is my logic wrong? function c...
asked by 02.12.2018 / 21:34
2
answers

JavaScript Array php values

In my database I have id , coluna1, coluna2 1 , 38.951399 , -76.958463 2 , 38.942855, -76.959149 I'm using php I need to transform this information into an array in JavaScript with the following structure new Array([38.951399, -...
asked by 31.07.2014 / 14:46
2
answers

Modify the image size according to its URL

Good morning! I searched (and even found a js named Holder.js that apparently does what I want, but I could not understand it) a way to do the following: Image Url at 700x700 - > link I want it to stay 200x200, so step - > link or...
asked by 01.08.2014 / 14:48
2
answers

Display a label while the page is loading

I'm trying to create a label , which appears while the page is loading, with a "a carregar" . And once the page loads, hide the label . My code is as follows: document.getElementById("lblmsg").innerHTML = "carregar...";...
asked by 24.08.2015 / 17:25