Questions tagged as 'javascript'

1
answer

Legend in jQuery always returns "undefined"

I have a small slide show, but at the time of the caption it does not return anything (it has the alt attribute in the images I want to use) Below I have the script I'm using: $(document).ready(function () { $('.abre-fecha').hide();...
asked by 19.06.2015 / 04:54
2
answers

How to redirect the user (to another page) after your choice?

I'm having trouble making the code below work, I need to be redirected to a particular page when selecting a city. Below is the code I'm trying to use: JavaScript: <script type="text/javascript" src="http://pastebin.com/raw.php?i=Qi2B...
asked by 20.06.2015 / 16:34
1
answer

Highlight current page link

I'm implementing a menu in the header of my page. As the user clicks the buttons on this menu, the page is rendered just below. I would like to highlight in the menu the button for the current page of the user. I'm calling it this way: <...
asked by 19.06.2015 / 18:32
1
answer

Inherited class: error TS2554: Expected 5 arguments, but got 0

I have two classes in Angular 4 that are related by inheritance, however doing build gives an error:    error TS2554: Expected 5 arguments, but got 0. Parent class: constructor(protected http: Http, private router: Router,...
asked by 26.07.2018 / 16:18
1
answer

How to pass a Javascript value to a PHP form, and send it as a POST method?

How to pass a Javascript value to a PHP form and send it as a POST method? I have a script: if (cc.isValid()) { $('#debug').text(cc.hash()); var verifica = cc.hash(); // $('#debug').text(verifica); conso...
asked by 29.07.2018 / 21:25
1
answer

Get information from a JSON file with spaces

I'm developing an application using JavaScript and I need to get some information from a JSON file, but this file comes with spaces. I wonder if it's possible to get this information even with the spaces? { "Meta Data": { "1....
asked by 27.07.2018 / 03:29
2
answers

make div stay below footer

Hello, I would like to know how to make a div follow the scroll bar of the screen and when it reaches the end of the screen it is positioned below the footer and when you hit the close button, it disappears and the footer is positioned right like...
asked by 23.08.2018 / 21:23
1
answer

How to add dependencies in a module already initialized in AngularJs?

I usually use AngularJS with a framework where I have a Javascript script for each page of my application. The main dependencies and project settings I define in a app.js file, which is used on all pages. More or less like this: /...
asked by 28.08.2018 / 20:41
2
answers

Turn IP number into location

I get a file in .csv with data from some users. NOME | E-MAIL | IP | DATA Location is missing. I would like to know if you have how to get the IP number and turn it into the location. There are services on the internet that inform the...
asked by 23.08.2018 / 17:00
1
answer

Get HTML elements from a url and send them to a div

How to get elements with a id specified, and get all elements that are within a url and send them to a div (not iframe )? Is it possible with pure JavaScript, or is it necessary to have some js library? Where should I...
asked by 25.08.2018 / 00:04