Questions tagged as 'javascript'

1
answer

Change icons when plotting a route in Google Maps

I have a function that traces a route between 2 points, but in the icons it places point a and point b. I need to change the source and destination icon.     
asked by 18.10.2016 / 01:41
2
answers

How to call a function from one component to another in vue.js

What I try to do is that when the onUpdate function is executed in component 2, the sort function is executed in component 1. COMPONENT 1 var container = new Vue({ el: "#main", data: { list:[{name:"John"},...
asked by 05.01.2019 / 18:56
1
answer

unexpected php error

I have the following error in my form, I know I'm missing something but I do not know where. look: <?php if(Session::getUID()!=""):?> <?php $u=null; if(Session::getUID()!=""){ $u = PacientData::getById(Session:...
asked by 04.01.2019 / 22:04
1
answer

Arrangement of dates by fixes in Javascript

I have an arrangement as follows [{ first name:"---", date: "05-06-2019" }, { first name:"---", date: "08-06-2019" }, { first name:"---", date: "10-01-2019" } ] I would like to order the arrangement of the form from the closest date to the farth...
asked by 03.01.2019 / 20:47
1
answer

Change value of an attribute in ajax

I have the following query: I want to know if it is possible to use a variable in an attribute in ajax, I do not know if I explain myself, but in the following code I will try to explain: <script> function active_change_update(ruta, id,...
asked by 03.01.2019 / 13:59
2
answers

Uncaught Error: Syntax error, unrecognized expression: [href = # "step2"]

I was checking this example and implementing it in a project but I get an error, the source code is here; link HMTL: <div class="container" id="myWizard"> <div class="navbar"> <div class="navbar-inner">...
asked by 17.12.2018 / 15:58
1
answer

Show wait GIF while ajax makes the request

I have the following HTML code: <div id="detalles-modalE" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content">...
asked by 25.11.2018 / 19:14
1
answer

Take input values in JavaScript forms

I can not see the results that I write in the fields of the form, I'm doing it in the following way but I do not get so much what I entered in the user field or in the password field. function contrasena() { //HTML document.get...
asked by 26.11.2018 / 16:44
3
answers

Insert name, not value of a select to my BD

I have an update form, where is a select and you can choose the area if you want to edit, when choosing any, in my database update the value of the option. These data are filled through js, they are not static inside the html. In an...
asked by 26.11.2018 / 16:34
1
answer

Status of colors for inventories, PHP and JS

An inventory system is being developed, where after registration they appear in a table. In the registration form you must specify quantity , reorder_level (cantidad minimima) , 'target_Stock (maximum amount). By certain proce...
asked by 28.11.2018 / 22:38