Questions tagged as 'javascript'

1
answer

Open window command

I have the following code: <script> window.location='https://eco2/agende-online/'; </script> It's inside a frame, I'd like to know how to give a command to open and load the entire page to another. I tried the target but i...
asked by 29.06.2018 / 05:11
1
answer

Policy to restrict typing with regular expression in AngularJS

I wrote a directive to inhibit typing from specifying a regex. However there are two bugs in this solution: In the first example input should allow only numbers or numbers followed by periods [.] , or followed by periods followed by nu...
asked by 15.01.2018 / 15:18
2
answers

Separate content from a room via Regex

In 2 variables I want to perform the following operations. In the 1st, var chat1 , separate via regex 4 information: " A: ", " How are you? ", " B: " and " I'm fine, thanks. ", and be able to access them through their indexes using the cap...
asked by 17.01.2018 / 02:00
2
answers

How to execute a callback when a CSS animation is closed?

I've seen angular-animate able to detect when a CSS transaction is in progress or not to take certain actions. I need to figure out how they do it! Example: #square{ background-color: tomato; height: 100px; width: 100px...
asked by 18.01.2018 / 16:49
2
answers

get input value hidden inside a td tag

how to get value from this input inside the table with data from bd:    HTML CODE <table id="tbl_3" class="table table-striped table-bordered table-hover"> <thead> <tr> <th style='text-align: center;' >NOME...
asked by 21.02.2018 / 19:33
2
answers

Clear VUE v-model data at once

I have a Vue instance in which I get values from a form to send via ajax, I would like to clear the data saved by the v-models at once after sending, is it possible? new Vue({ el: '#app', data: { campo1: "", }, methods:{ saveForm:funct...
asked by 17.01.2018 / 18:56
3
answers

Get the width 'width' of a text?

We usually get the width width of a div or any other tag within the page. How can you get the width of a plain text? For example: Um texto How do I know the width of this text in the JavaScript page?    It is no...
asked by 24.02.2018 / 01:59
1
answer

Lock the mouse scroll in JavaScript

I made a program using polymer and within one of the components in a specific area (the legend area of my graphic) I want the scrolling page not to work, is there any way to do this?     
asked by 27.02.2018 / 18:21
2
answers

Concatenate Radio Elements

I have the following code. Html: <div> <textarea name='arraytextArea[]'></textarea> <br> <input type="radio" name="grupo1" value="Valor1"><span>Valor1</span> <input type="radio" name="grupo1"...
asked by 28.02.2018 / 23:33
2
answers

Hold the hover on a button after the mouse

How to maintain the hover effect after the mouse button? The code below has this function, but just by clicking, I'm pretty new at it, but I'm learning. var header = document.getElementById("div777"); var btns = header.getElementsByClassN...
asked by 18.07.2018 / 05:02