Questions tagged as 'javascript'

1
answer

Get the customer's date, not the "SERVER" in C #

I am trying to capture the date of a client LOG IN on my portal. when using DateTime.Now I am capturing the time of the server, what I need is to obtain the time of my client, since the server is in a country where the schedule does not m...
asked by 12.07.2017 / 17:51
3
answers

can I load a function js in bodybody?

I need to know how to call functions js because I do not know how it is done but that it is different from onchange or onclick. The only documentation I have found has been for no answer to my question.     
asked by 18.04.2017 / 03:00
2
answers

Change one text element of the DOM for another using Javascript

I have a checkbox that when I leave it checked I want it to say Active in green, and when I leave it unlocked I want it to say inactive, the topic is like this, by javascript I did that when checked it says in active green, and when it is unchec...
asked by 15.04.2017 / 15:16
3
answers

Problem printing and redirecting jquery firefox

Good evening, I write this time because I am trying to print a div and then redirect me to the main page, but the problem is that it does not redirect me, I try in firefox and that happens to me, it's as if I just made an action pr...
asked by 13.04.2017 / 02:04
1
answer

ignore if confirm is canceled

I want that when you click on cancel, do not redirect to the url of the link, how to do it? $('#concederRol').click(function() { confirm("esta seguro de realizar esta accion? esta accion es irrevocable");...
asked by 14.04.2017 / 23:09
3
answers

Select the value of a select

Hi, how are you all concerned about a select? It happens that I want one of the values of them example: <select id="test"> <option value="100" selected>Precio1</option> <option value="200" s...
asked by 18.11.2017 / 09:58
4
answers

At what time use "VAR" in javascript and why is it necessary? [duplicate]

I have a doubt, I have always coded in js but I always did not use the var to put in the declaration of a variable but I saw that some say that var should be put inside a function, others say that it is put when it is out. Thanks for your c...
asked by 04.04.2017 / 17:25
2
answers

Delete mysql log with php

What a good day! I'm working on a project and I see the need to delete files from a list, line by line, the detail is that for this to be effective, the record must also be removed from the database. Any suggestions on how to make that match wit...
asked by 16.08.2017 / 19:45
1
answer

how to do push array inside an object that is in an array?

I'm trying to create a JSON and I need to do the following: var arreglo = []; var sumar = () => { var id = arreglo.length + 1; arreglo.push({id: id}); console.log('Arreglo', arreglo) }; sumar(); as Result prints: Arre...
asked by 18.08.2017 / 21:35
2
answers

Open window url in new window jQuery

I have this function that I call from a select. function CambiarEstadoPedido(que,id,cod,estado) { //tareas del seleccionador if(que=="cambiar_estado") { InsertarModal('Pedidos','Pedi_CEstado','ConsPedido',id,estado,'450','410'); } if(que =="Al...
asked by 24.08.2017 / 21:14