Questions tagged as 'javascript'

1
answer

How to know if a break has been executed

Good, I have a doubt and I can not find an answer anywhere. The fact is that I have in a script a loop for in which I have a condition with a break statement. What I would like to know is if there is any way of knowing if the br...
asked by 26.10.2017 / 13:41
3
answers

capture the values of the option regex attributes by groups

I have this regular expression <option\s?(value="(.+?)?")?\s?(selected="selected")?>(.+?)<\/option>  validating in the content of a page the option labels of a select that are created dynamically. I need to capture the value i...
asked by 15.11.2017 / 17:41
2
answers

how to add what is written in input to an array? [closed]

let arrayPaises= ['eeuu', 'colombia', 'noruega', 'islandia', 'peru'] arrayPaises.map((e, key)=>{ jQuery('ul').append('<li>'+e+'</li>'); }); <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.mi...
asked by 27.11.2017 / 21:52
1
answer

load html file using window in js

I have a dialog box that shows a text and two buttons. How can I make the button to accept recharge the html file it is in or can reference an html file to load? var cuadroDialogo = confirm("Que mente mas privilegiada tienes compañer@\n¿...
asked by 24.11.2017 / 20:23
2
answers

Retrieve a variable sent to server

From a JavaScript function I sent a String with the following method: zAu.send(new zk.Event(zk.Widget.$('$nuevaPeticion'), 'onNueva', resultado, {toServer:true})); The string I send is the result. My intention now is to collect that String...
asked by 21.09.2018 / 12:02
2
answers

Select all checkboxes [duplicated]

I have: Selecccionar todos : <div ng-repeat="column in columns"> <input type="checkbox" id="selectAll" name="selectAll"/> <input type="checkbox" name="dinamico" > 1<br/> <input type="checkbox" name="di...
asked by 20.04.2017 / 12:27
2
answers

Copy css from a parent element (from the father) to the child

Good, I have this structure. <div class="contenedor-abuelo(?)"> <div class="caja-padre"> <div class="caja-hijo"></div> </div> <div class="caja-padre"> <div class="caja-hijo"></div> </d...
asked by 26.09.2017 / 19:14
1
answer

Open a modal bootstrap window with JavaScript [closed]

I have a function in JavaScript that validates data. The problem is that it uses alerts to warn when data is badly loaded. What I want to do is show Bootstrap modal windows to see the error. This is what I did, which does not work: v...
asked by 11.01.2017 / 16:05
1
answer

how to generate this type of messages?

I want to learn how to make these types of messages, is it a modal? some example? Is it only css? what libraries are used to do it? jquery?     
asked by 23.01.2017 / 05:42
2
answers

Get the value of a promise

I'm having a lot of trouble getting the value of a promise . Basically I want the value that returns a promise to be assigned to a variable. For example    This example uses the following elements: vue. js , vuex , almacen is a syno...
asked by 27.03.2017 / 04:06