Questions tagged as 'javascript'

1
answer

Syntax Error jQuery v3.1.1 "el.querySelectorAll (" * ,: x ");" // line 1317

At the moment of opening the console and reloading the page, it sends me directly to the debugger and shows me line 1317 in red and remains loading until the console is closed. I do not think the problem is in jQuery. I do not think he's the...
asked by 28.11.2018 / 00:37
1
answer

Variable in object path

I'm doing a personal project where I try to recover JavaScript Objects through URL, a kind of RESTful service so I need to convert the routes of my URL in JSON routes to recover the object in question, I do this from the following way:    Tur...
asked by 27.12.2018 / 21:27
1
answer

Select a selected: true from another Select

For some reason you do not select me on the second Select. I have not asked the question without checking before, but it does not work for me. I have a Select that depending on what I choose, I will select by default any of the options that I al...
asked by 27.12.2018 / 19:56
1
answer

Failed to execute 'postMessage' on 'DOMWindow' API Youtube

The situation is as follows: I have 2 YouTube videos that are hidden, when I click the link this opens the video. Now trying to use the Youtube API, which I want to give me some data, I mark the following error: Failed to execute 'postMe...
asked by 02.08.2016 / 17:47
8
answers

Check empty input

I am programming in php and mysql and I have a form with personal data and a button submit to save. Then I want to validate that the input of the root of the person is not empty, and therefore do not leave save. I...
asked by 11.07.2016 / 18:26
1
answer

Doing cast with number does not change the data type

I am learning javascript and Angular, Because at the moment of seeing the data type of this variable even specifying the data type it still comes out as string being a number this.activatedRoute.params.subscribe( params => { const idx...
asked by 05.09.2018 / 18:38
1
answer

How to call a javascript function

I have the following function. function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#preview').attr('src', e.target.result); };...
asked by 29.08.2018 / 09:00
1
answer

How to make images change with an IF conditional in javascript

Here is the html code: <html> <head> <title> DateFast </title> <script type="text/javascript" src="BrandonWelding_67824.js"></script> </head> <body> <cente...
asked by 12.09.2018 / 17:01
1
answer

Detect changes in HTML code

Hi, I would like to know how to detect changes in an HTML structure. For example <html> <div><div> <html> Over time that structure will be changing.I would like to know if there is any way to detect the changes..wit...
asked by 12.09.2018 / 22:09
1
answer

Wrap div generated by PHP with another div with CSS class

My question is about the following. Now I have this in a .php file: <div class="uno"> <?php if( function_exists('number') ) { number('tres'); ?> </div> The PHP code that is in the middle generates a <div class="tr...
asked by 17.09.2018 / 08:16