Questions tagged as 'javascript'

1
answer

Find element with dynamic class with ng-class

I'm adding classes using ng-class , but when I try to find this element starting from a directive, I can not find them. Link to a plunker with example code: link .directive('step1', function(loadTemplate) { return { link:...
asked by 25.02.2014 / 23:15
1
answer

Component Autocomplete VueJS

I want to create a component of autocomplete , so I have the following code. <Input v-model="form.autocomplete.input" @on-keyup="autocomplete" /> <ul> <li @click="selected(item, $event)" v-for="item in form.autocomplet...
asked by 07.06.2018 / 20:18
1
answer

Add and subtract values from multiple input's after they have been created or removed with appendChild and removeChild.

Well my problem is as follows, with the appendChild of JavaScript I create an input with value X with its own ID but it can be random, and I add another with the same method with the same situation as the other but with a different value (Leadin...
asked by 11.06.2018 / 00:11
1
answer

POST model arriving null in controller

I have a complicated problem in my code that I can not solve. Initially, I have a function SubmitUsuarioRegistro of JavaScript that performs the post of the user profile, forwarding the information to controller . This code was...
asked by 11.06.2018 / 04:43
2
answers

Django - How to redirect the user to the other pages of the application?

In the template menu I have a menu Dropdown with the links to the other pages application! In the home page of the application I have the links to the other pages of the application! Ex: Home, Reports, About ... All are link's that sho...
asked by 16.05.2014 / 20:10
1
answer

Unusual behavior of variables captured by a clusure in a for [duplicate]

Consider an object obj any: obj = {q: 1, w: 2, e: 3, r: 4, t: 5, y: 6}; Now I'm iterating under the object's keys and creating an anonymous function that uses this key: list = [] for (var key in obj) { list.push(function() {...
asked by 16.05.2014 / 20:40
1
answer

Chrome Extension x Delphi

Does anyone know how to communicate an extension created for CHROME with DELPHI? How to send DELPHI commands to this extension OR vice versa? Follow the extension code that captures the current ABA code. function DOMtoString(document_roo...
asked by 16.05.2014 / 02:51
2
answers

MooTools request: onSuccess does not fire

I'm using KnockoutJS in conjunction with MooTools, but I'm having trouble with Request . <div class="form-group"> <select data-bind="options: classificacoes, optionsText: ds_classificacao, optionsValue: id"></select>...
asked by 15.09.2014 / 15:39
1
answer

Problem with select in KnockoutJS and MooTools

I'm having a problem with a simple test with KnockoutJS in conjunction with MooTools: <div> <select data-bind="foreach: animais"> <option data-bind="text: nome, value: id"></option> </select> </...
asked by 14.09.2014 / 23:46
1
answer

In multiple YouTube videos, how do I play on one and pause another?

I have several YouTube videos on one page, I wish that when I play in one, if another video was rolling, pause it. It's possible? Without reloading the page ...     
asked by 12.09.2014 / 19:31