Questions tagged as 'javascript'

2
answers

Handle all images in a directory without having to access [duplicate]

The script below, is responsible for showing a sequence of images at a certain rate of quantity (num), so it is necessary to define a number of images. Check out: Code <html> <body> <script> var dir = 'imagen...
asked by 21.01.2017 / 15:18
2
answers

Angular 1 - Using the bindings in the controller - Component

I'm using AngularJs, in creating a component I need to access the bindings in the controller of my component. In html I'm calling the component like this: <component type='tipo' urlid='meuid'></component> I'm using the second...
asked by 16.01.2017 / 12:25
3
answers

Store URL snippet - JavaScript

I'm capturing a certain URL value through JavaScript, but I'm having difficulty at any given time. Follow the steps below. var url = window.location.href; var page = url.split('/'); var page = page[page.length-1]; var arrayIt...
asked by 02.06.2017 / 21:22
3
answers

Several different carousel with owlCarousel

On my page I need 3 carousel: One for the banner , another for ruler and one more for evaluations. All will be with images and it would need that each one had its parameter, however with the OwlCarousel I could not do it, since when I make t...
asked by 03.06.2017 / 02:23
1
answer

Auto click button with Tampermonkey

I have a button on a website, which is to thank, I would like to know how to make a script for Tampermonkey, and that when the page loads, it runs this click on this button, based on class thank_user . Thank you This shoul...
asked by 02.06.2017 / 07:05
2
answers

How to modify link in PHP code [closed]

The code snippet is this: <div class="menu-item" ui-sref="albums" ui-sref-active="active" href="/albums"><i class="icon icon-cd"></i> Álbuns</div> The idea was to link instead of going to "/ albums" to go to any othe...
asked by 05.06.2017 / 18:59
2
answers

Passing and receiving the field id by parameter

I have this html code: <input type="radio" name="resultado" value="Y" onclick="habilitaCampo(this.value)">Aprovado <input type="radio" name="resultado" value="N" onclick="habilitaCampo(this.value)">Recusado<br> <input ty...
asked by 29.05.2017 / 22:31
2
answers

$ .find () method in pure javascript

How to set the attribute of a child element within another element using javascript pure? Home in jquery would be: $('.preview').find('img').attr('src','#url'); but how does it stay in javascript pure? <div class...
asked by 15.04.2017 / 23:10
1
answer

How can I set values from my Controller for a form in Ionic / Angular Js?

I have data in my controller that I want to play on my form. How can I play this data for my form? I'll give you an example: My controller data is these variables: $scope.endereco_gps = window.localStorage.getItem("endereco_gps"); var r...
asked by 17.04.2017 / 14:02
2
answers

apply event to an input with jQuery

Well, I need to apply the $(".margem").keyup(); event only to the input that contains a value greater than 0. Notice that by changing the cost value the system applies the $(".margem").keyup(); event by updating the input val...
asked by 18.04.2017 / 13:54