Questions tagged as 'javascript'

2
answers

Validate that the date is not in the future [duplicate]

In a file js, thanks to the help and more research, I have already validated the correction of a date provided by the user. As it is a date of birth I would like to be able to control that it was not superior to the current date. In the follow...
asked by 01.04.2017 / 10:35
1
answer

Convert a string type date to the MongoDB ISODate format

I need to store the dates contained in a JSON object in a format that assures me that it will be valid in any scenario that is used and the chosen format is ISODate. Initially I tried to create an object Date() and function .toISOSt...
asked by 27.04.2017 / 02:17
2
answers

Make a javascript in html that returns my ip

Hi, I'm doing a small html with your javascript to show me my ip, the code is as follows: <HTML> <HEAD> <script type="text/javascript"> (function(loading, success){ var xhr = XMLHttpRequest !== undefined...
asked by 25.02.2017 / 17:03
2
answers

Problem with control of type DATETIME-LOCAL of HTML5 returns me the hour ahead

I have this control <div class="col-lg-6"> <input type="datetime-local" name="fechahora" step="1" min="{{meta.fechaActual}}" ng-model="evento.fechaInicio"> </div> But when I try it and select for example the next hour...
asked by 28.02.2017 / 17:06
2
answers

How to give value to a data taken from a serializaArray and send it by AJAX?

I have a tabla called 'individuos' , it has basic data like (id, no.identificacion, nombre completo, depen_serial(INTEGER)) among others ... (to avoid any 'wrong' comment, this is how it is stipulated :: ..) depen_ser...
asked by 07.03.2017 / 15:06
1
answer

Obtain data- from a checkbox and when selected show data value- in a [duplicate] input

I'm doing an office booking website (PHP, MySql), to book a time it shows a table where the start time, end time, availability and price, every hour has a checkbox at the end to select it, all right up there, what I need is that when you click...
asked by 06.03.2017 / 02:51
2
answers

What does it mean and || p () (0); in Javascript?

I'm trying to see where the value of the variable "y" comes from in a Javascript code and 2 lines above is the notation: and || p () (0); What does this mean?     
asked by 14.03.2017 / 20:13
1
answer

Get ajax checkbox values

the following happens to me I am driving a system which has 2 checkboxes <div class="form-group"> <input id="admin" type="checkbox" class="material_checkbox" name="admin"> <label for="admin">Administrador</...
asked by 10.02.2017 / 01:30
2
answers

Execute script without ending when there is an error in apps script

I have a code in apps script where I delete an event in calendar with the following instruction var calendar = CalendarApp.getCalendarById("[email protected]") .getEventSeriesById(IdParaBorrar).deleteEventSeries() It works well w...
asked by 09.02.2017 / 04:13
1
answer

I can not get radio button value

I would like to obtain the value of the active radiobutton of the group "tipo_sancion" <?php include "conexion.php"; ?> <html> <head> <script type="text/javascript" src="./js/cambio.js"></script> <script type="...
asked by 08.02.2017 / 01:47