Questions tagged as 'javascript'

2
answers

Hide image when loading page through onchange function

Hello friends, I have the following code to show the image when the page loads when doing POST by means of a select: this is the image: <img src="img/icons/loader_transp.gif" width="20px" id="searchingimageDiv" class="img_loading" styl...
asked by 02.08.2017 / 16:25
2
answers

The data in form is not registered

Hello, I have a small user registration code but you are not inserting the data into my database: conexion.php <?php $con = new mysqli('localhost','root','','coco'); ?> formulario.php <!DOCTYPE html> <html> &l...
asked by 11.08.2017 / 20:50
1
answer

How do I make these php variables appear with single quotes? [duplicate]

I'm trying to make these php instructions with embedded html appear with single quotes. This is the code: echo '<li aria-expanded = "true" id = "'.$caption.' "onClick ="toggle(submenu'.''.$contador_submenus.', '.$caption.') "&...
asked by 11.09.2017 / 10:51
1
answer

How does this slider made in pure Javascript work?

What I want to do is a fixed menu. When I click on the menu the slider is activated. But I do not understand this code: function funcion(){ var page = document.getElementById('page'); var sections = page.getElementsByTagName('section...
asked by 05.09.2017 / 04:23
1
answer

Update value of moment.js

I'm working with the date management library in Javascript Moment.js, and I'm trying to make a kind of calendar, in which, starting from the current date, pressing a button backs up on the date, and when clicking on other advances. The main p...
asked by 04.09.2017 / 14:16
2
answers

Error starting a Javascript script in Nodejs

I have a small problem when starting a script in the javascript language whose library is nodejs. The version of the node that I have installed is v6.11.1 and my computer is a Mac whose operating system is MacOS Sierra. The script that I'm tryin...
asked by 27.07.2017 / 19:56
1
answer

Using Kendo to graph (problem assigning values to the tooltip and X axis)

I am generating a couple of graphs with Kendo, one of bars (column) and one of lines (Line), the perfect graph but I have a problem with the labels of the X axis, $("#chartAcumulado").kendoChart({ chartArea: {...
asked by 17.07.2017 / 17:05
1
answer

Include Script associated with a google script form

I'm doing a small project  with two forms in the same spreadsheet, all the code worked well until I followed the recommendations shown in one of the answers to How to show another page in google apps script? Once I did that, the script co...
asked by 18.07.2017 / 06:25
1
answer

You can modify an element from Button to Input Text with jQuery

You can modify the element, of the DOM with jQuery. That is, declare it as a Button and then with jQuery convert it to text. or when I have a table with records do not double click on a td it becomes an input text where I can modify it? I was pr...
asked by 19.07.2017 / 19:43
1
answer

How does .bind (this) work in Javascript?

I'm working with Javascript, which function has the functionality .bind (this)? It appears within a form import React from 'react'; import { Players } from './../api/players'; export default class AddPlayer extends React.Component {...
asked by 22.07.2017 / 00:30