Questions tagged as 'javascript'

1
answer

Error opening a KML in an HTML - Google Maps

I have the following problem, I try to add the KML file from Google Maps to an HTML file, but it gives me the following error: Code: function initMap() { var map = new google.maps.Map(document.getElementById('map'), { zo...
asked by 19.03.2017 / 05:13
2
answers

Export and import modules with ES6 error?

I am trying to learn how to export and import modules in ES6 and it tells me in the console: SyntaxError: export declarations may only appear at top level of a module I'm trying something simple. I have the code so that: archivo.js e...
asked by 20.03.2017 / 00:00
1
answer

Error in menu with jQuery function

I have the following code: <script type = "text/javascript"> lightbox.option({ 'alwaysShowNavOnTouchDevices': true }); listapremier(); $(function(){ $('a').click(function(e){...
asked by 10.03.2017 / 00:58
2
answers

Ajax Fill input fields from combobox

I need help because I can not achieve this: Here I have a code that I got on the web and adapted to fill dependent comboboxes. But I need that from the selection of the combo #sucursales the input field #Direccion is completed, obtaining data fr...
asked by 10.03.2017 / 15:19
2
answers

How to insert the id of the data? but to show me the name in the select2

In the select I already show the name of the data 'json', but I want to send to the db its id. <section class="col col-6"> <label class="label"> Nombre </label> <select name="room_id" id="room_id" class="form-control...
asked by 09.03.2017 / 20:00
1
answer

Is there any way to catch the value / content of these input via PHP?

As it were, so I have structured everything: Here is the website with fixed textarea and those that can be generated. <script language="JavaScript"> window.onbeforeunload = confirmExit; function confirmExit() {...
asked by 22.03.2017 / 08:55
2
answers

Warning: Each child in an array or iterator should have a unique "key" prop

I can not find where this warning is playing or why, any ideas? import React from 'react'; import logo from '../../../raw-assets/svg/logo.svg'; import line from '../../../raw-assets/svg/line.svg'; import 'whatwg-fetch'; import {back...
asked by 23.03.2017 / 18:18
2
answers

Find max and min in Javascript without using array

I need to find the maximum and minimum of a sequence of numbers that the user enters, at random, until he wants to. I mean, it could be 2 numbers like 356, if you want to. I can only use while and if, and not for. So far I have this:...
asked by 06.03.2017 / 16:54
4
answers

Upload Files with Php and Ajax

I am new with Ajax I try to upload files to my folder and store the path in my MySQL, these are my advances: I have my modal window, with which you place the data of the file: <form class="form-horizontal" action="../../phpcrud/create_do...
asked by 14.03.2017 / 19:06
1
answer

Access external files in Angular 2

I have created a project in Angular 2 within a JavaScript project. I need to use data and objects, within this Angular application, that are in external files and can not be moved from there. By making use of the CLI ng serve comman...
asked by 23.02.2017 / 10:47