Questions tagged as 'javascript'

1
answer

React-native error: does not communicate with AVD or devices

I came across the following error: my app was unable to communicate with the AVD android nor with my Device. Both are connected and working ...     
asked by 04.05.2017 / 18:01
3
answers

How to use a two-dimensional Array with Javascript (jquery)?

I think my question is too shallow, but I explain the situation in more detail: I already have the code and it works partially follows; $(document).ready(function() { var url = "dominio.com/json.php"; $.getJSON(url, function(result)...
asked by 05.05.2017 / 05:22
1
answer

select is blank when giving history.back ()

I set up a system where I enter the state and jQuery loads the cities. The problem is that when I run a history.back() and go back to the form page the select city is left blank. How do I make it not lose value? Code sample....
asked by 05.05.2017 / 21:42
0
answers

Problem with input and autofocus

I'm having a problem with inputs ... I have two inputs: the first has autofocus and the other does not. However, whenever I type in the second input, it loses focus and focus returns to the first input. I read that React will render the compo...
asked by 20.04.2017 / 00:21
0
answers

Validate CEI (INSS specific register) with javascript or jquery

Good afternoon, I searched a lot for a function in javascript or jquery that validates the number of CEI typed in the form and did not find it. I have found only the rules for validation at this link: How to validate the CEI in ruby? . From...
asked by 08.05.2017 / 22:14
2
answers

How to sort letters and numbers in JavaScript and Lodash?

Classify Lodash comes first number after letter, for example: const myArray = ['2', '5', '10', 'A', '1']; //sim, número String const result = _.orderBy(myArray, item => parseInt(item), 'asc'); //['1', '2', '5', '10', 'A']; I would lik...
asked by 17.05.2017 / 20:49
1
answer

Display products in 4 after 4 clicks view more

Initially I want to bring 4 products out of an array and would like to display 4 more after clicking the see more button. In the code below I bring them all at once. current code below: <?php echo $header; if(isset($mfilter_json)) {...
asked by 17.05.2017 / 19:32
1
answer

How to update properties in React setState

I'm trying to add objects to the 2 property of the FecthApis component. I make the call to the two Api's, and receive the requisition with the expected objects. However, when I try to include these objects in both properties with "setState", I g...
asked by 17.05.2017 / 21:01
0
answers

Magic mouse is skipping the sections when I scroll

So when I use a normal mouse, the scroll is correct, but when I use magic mouse, it skips one-two sections. How do I solve this? I tried to add a delay (100) when the user had to use MAC that even solved the problem, a problem that the user says...
asked by 17.04.2017 / 20:08
2
answers

Jquery - Best way to select the same element

My system works in the form of SPA (Single Page Application), I load all the functions that I will use in the system in a single file (which is light by the way), the problem is that it is all Once I load a page, I need to retrieve the inputs wi...
asked by 17.04.2017 / 04:41