Questions tagged as 'javascript'

2
answers

Class of characters denied as [^ +], without escaping the + sign

I have 2 patterns: var a = /[^+][a-zA-Z]/; var b = /[a-zA-Z][^+]/; According to sources that I have read, what the a does, is to deny with ^ the character + , but you should not escape it ?, staying: [^\+] In add...
asked by 13.11.2017 / 22:42
5
answers

get the age from the date of birth with javascript and php

Hi, I am working on a form in php where I have the data of a person and I want to put the date of birth in dd / mm / yyyy format I automatically calculate the age and put it in the age field. Can this be done with javascript?     
asked by 02.11.2016 / 18:24
3
answers

Random HTML images

How about, can anyone here help me to put a panel ( div ) with images that change every so often? I already tried with <marquee> but I can not get what I want. Here an example of what I want to achieve (is the one with a bl...
asked by 11.09.2016 / 23:19
4
answers

Fill a list with contents of an Api

I'm trying to fill a list of characters from an Api, but I have a question about how to fill the array, I had difficulties just having 10 characters and that these are listed and generate a link to a movie . So far I have the API call, but I onl...
asked by 01.02.2018 / 06:52
2
answers

Extract a fragment of a variant string in Javascript

I have a date string such as: 1-Ene-2017 , the case is also presented that is as follows: 28-Ene-2017 , what I try to do is get the part of the month's chain that is: Ene . So far I have not been able to get the chain I want...
asked by 29.11.2017 / 19:30
2
answers

What is the difference between innerHTML and outerHTML?

I would like to know the difference between innerHTML , outerHTML as well as innerText and outerText within javascript     
asked by 26.12.2017 / 06:25
3
answers

Load new page and script afterwards

I wanted to know how a web page could be loaded and after being loaded a script is executed. I have tried this way but there is no way. On the console and in the URL bar: javascript:window.open("http://www.google.es"); setTimeout(function()...
asked by 04.04.2016 / 18:35
1
answer

Error when exporting class

I have two files in the same folder , one called main.js and the other es.js . The problem is that when trying to import a class of es.js , from main.js throws me the error:    Uncaught SyntaxError: Unexpected...
asked by 05.11.2017 / 06:11
3
answers

Set an attribute of the database to an input

I have a test function in javascript and what it does is that when I select a developer in the select, I pass the name of this to an input, but it passes me the id (all the select fields are from the database) Could you help solve it? I just nee...
asked by 30.10.2017 / 15:01
3
answers

CSS event when clicking on container

I have an image and I am trying to click on it to give me a flip effect that I have already done and to return the image to me. The point is that I have handled it with over and active. But one does it to me when I have the mouse on top of the i...
asked by 21.11.2017 / 16:35