Questions tagged as 'javascript'

3
answers

Synchronous Call in Angular js

I want to know if there really is how to make synchronous calls with angularjs. The problem I have is the following: I have two URL1 and URL2. URL1._ in this first url what I do is get some values of asignaturas and c/u of th...
asked by 22.02.2016 / 22:32
1
answer

Disable button

I want to click on a h:commandButton that is within a modal of bootstrap disable a button that is inside a panel. I tried to do it with
asked by 07.05.2016 / 20:36
2
answers

Why can not I validate this form?

I can not find the error here because it does not send it to the mail that is declared in action function validar() { if (valor = document.getElementById("name").value; if (valor == null || valor.length == 0 || /^\s+$/.test(v...
asked by 05.05.2016 / 10:51
2
answers

Modal Bootstrap is only shown once as modal

I work in an ASP MVC application, I have the need to show an image in a Modal window using bootstrap, the modal window will be called from a cell in a table, this is my HTML to shoot the modal: <td class="celda"> <!--Aqui es donde m...
asked by 25.04.2016 / 16:18
3
answers

focus Javascript does not work for me

why focus () does not work ?? this is the code ... var pcart =document.getElementById('pcart'); if ((parseInt(pcart.value)) != 100){ pcart.focus(); alert ("debe valer 100"); return false;} <input type="text" id=...
asked by 19.04.2016 / 12:11
1
answer

Error injecting module to delete history in ionic

Trying to erase the history of an app made with ionic create a new module, but trying to inject it generates the following problem    ionic.bundle.min.js: 40 Uncaught Error: [$ injector: modulerr] link $ injector / modulerr? p0 = unicesarAp...
asked by 31.03.2016 / 00:28
1
answer

Add google map with dot mark (longitude, latitude)

I want to add a map with a mark on my ASP.NET page, this code adds the map but not the point, what will I be doing wrong? function CreateMapGoogle() { var atrMap = { center: new google.maps.LatLng(40.712449, -74...
asked by 04.09.2016 / 17:30
2
answers

How to make a select be validated only when the user clicks on a radio button with value = 1 with the formvalidation plugin?

I have a problem when I use the formvalidation plugin, because it does not matter if I click on the radius with value = 0 or value = 1, it keeps asking me to fill in the select field, but I only want it to do so when value = 1. HTML <f...
asked by 02.09.2016 / 21:10
2
answers

Relate two lists in angularjs

I request your collaboration because I do not know how I could relate two lists which have in common the id of one of them <table> <thead> <tr> <th>Nombre</th> <th>Edad</th>...
asked by 07.09.2016 / 04:29
1
answer

Change a value of an element within a bootstrap component with javascript?

I have a Bootstrap component in this case a progress bar and I want to change a value in this progress bar using JavaScript. <div id="barra1"> <h3 class="progress-title">Paso 1</h3> <div class="progress blue">...
asked by 27.12.2018 / 02:11