Questions tagged as 'javascript'

2
answers

Simulate click without calling function directly

Using pure javascript, I wanted to click a button and trigger the events of it, but the important thing is that I do not want to call the function directly. So far I have tried this: var send = document.getElementsByName("send"); window.addEve...
asked by 22.04.2015 / 22:51
1
answer

How to add and remove fields generated via CakePHP, dynamically?

Hello. I have a <select> that is fed by data from the database. I need to manipulate this select and multiply it if the user wants to send two different data. Since the <option> s depends on the data coming from the...
asked by 11.12.2014 / 13:42
1
answer

How to access a directive through a controller?

Does anyone know if it is possible to access a policy through a controller? The idea is for my controller to check a flag that is instantiated in the policy since it checks to show some results. I do not have a specific code because I want...
asked by 09.12.2014 / 17:56
1
answer

JavaScript Framework ExtJS would be the best option for large projects? [closed]

I would like to know if anyone has experience or great knowledge about the JavaScript ExtJS framework or some equivalent. The goal is to know if it is recommended (recommended = best option) for sites (large sites such as virtual stores and p...
asked by 09.12.2014 / 18:14
1
answer

How to limit the sending of data of a form?

I want to prevent a user from sending data more than 5 times a day; I have no way to use the database would have to be written to a txt file.     
asked by 06.12.2014 / 01:37
2
answers

Remove array from array array

I have the following data in an array var array = [ ["755", "20", "E", "274", $$hashKey: "0AK"], ["756", "20", "E", "274", $$hashKey: "0B7"], ["455", "30", "E", "159", $$hashKey: "0BQ"], ["7...
asked by 25.11.2014 / 18:33
1
answer

How to transfer an array in Javascript to array in PHP

How can I transfer a JavaScript array to an array in PHP? JavaScript Function array of expiration dates (datasvenc) in file cadastro_contratos.php: function calculamensalidades(){ var datasvenc = new Array(7); var tabela; tabela =...
asked by 26.11.2014 / 21:13
1
answer

Animate the position of div elements with MooTools

How do I change the position of a div after page loading? That is, have two div's that after loading page one appears from the right and the other from the left, using MooTools. The most similar example is this (but here with jQuery). <...
asked by 27.10.2014 / 20:39
1
answer

How to compare the value within a span / span and trigger an action?

How to get the value within this span? <span id="Preço">199,00</span> I need to compare it with another so that it triggers an action when it is greater than 199.00.     
asked by 24.10.2014 / 03:27
1
answer

How to filter, with angular, JSON objects by an id belonging to another object inside the array

My question is how can I filter objects from an array by comparing the id that is inside a "sub-object". Type: animais [ { id: 34, nome: baleia, categoria: { id: 2, nome: mamifero }, {...
asked by 13.11.2014 / 18:37