Questions tagged as 'javascript'

2
answers

When you do not type anything, do not show "Enter a name"

I'm messing with an application made in Ionic. In it, when I search for a photo in Google and select it, the field name is filled with the word that made the search. Now, when I select an image from my phone, the field to put the name is already...
asked by 16.12.2015 / 18:25
1
answer

Retrieve standardized array object

Hello, everyone. I have a problem retrieving an object, it follows my situation: How do I do: $scope.data = []; for(var i = 0; i < 5; i++) { $scope.data.push(i); } // Result: [0,1,2,3,4] Result I need [[0,1,2,3,4]] W...
asked by 27.12.2015 / 13:47
1
answer

How to let a function run after a while?

I have a code in javascript (jquery) and it performs a function when I move the scroll of the mouse, however, it executes the function several times when I go around the scroll. He did not want this to happen, he wished he could only run again a...
asked by 30.12.2015 / 19:25
1
answer

'show more' script adaptation with javascript

I'm using a script that was posted here in stackoverflow, which is to limit the display of the posts accompanied by a 'show more' link, so that it loads another amount of posts. Follow the LINK Note: If needed, I put the complete code here in...
asked by 27.12.2015 / 02:25
2
answers

Doubt with ng-pattern entry number with 2 decimal places - angularjs

I am trying to format a decimal value so that it is always sent in this format: 00.00, I have an example in this site link If you enter 20.10 = 20.1 (you want it to look like 20.10) if you enter 15.00 = 15 (you want it to stay 15.00) &...
asked by 31.12.2015 / 05:44
1
answer

How to create a menu with jquery that accomplishes this effect after the scroll?

Hello, friends. I am a beginner and would like to know how I apply this effect in a fixed menu (for desktops) so that when the user navigates to the following section (after section #home) a background appears in the menu and it have position...
asked by 21.03.2016 / 12:54
1
answer

Is it wrong to mix $ .post with $ .ajax in jQuery?

I'm doing a login screen with Ajax, jQuery and PHP. Follow the code: $(document).ready(function(){ //Quando 'btnEntrar' for clicado $("#btnEntrar").click(function(){ //Envia por POST para a página login.php: us...
asked by 21.02.2016 / 14:05
2
answers

How to get the value of the checkbox and option with jquery

I have the following image below andeachcheckboxcorrespondstothevalue<inputtype="checkbox" value="3" class="serie2" id="serie2[3]" name="serie2[3]"> <input type="checkbox" value="4" class="serie2" id="serie2[4]" name="serie2[4]">...
asked by 23.02.2016 / 16:18
2
answers

Adding table row with javascript does not work buttons onchance event

Hello, I'm adding rows from a table (tblformacao) using javascript and in this line I add an input and I'm listening to the onchange (.upload) event, however it does not fall into the method. When I switch to onclick it works. Can anyone tell me...
asked by 19.02.2016 / 14:49
1
answer

Add bookmark system [closed]

Recently in a project, the need arose to create a system that can be evaluated by the user, and in this case, only the "favorite" was requested. The user will only click on the "heart" and +1 will be added to each click. But without the use of p...
asked by 24.12.2015 / 18:01