Questions tagged as 'javascript'

1
answer

Catch the attribute value of an image and show it below

I have this code: <script> $(function(){ $(".flipster").flipster({style: 'carousel', enableTouch: true, start: 0, onItemSwitch: function(){ var nomeAlbum = $(this).attr("data-title"); console.log(nomeAlbum); } });...
asked by 02.03.2014 / 21:11
1
answer

Google Maps Problem JavaScript API V3 with WebApp in MVC

I want to make a simple Map appear when the user clicks (Menu > Find), the problem is that the controller receives the data and sends me and does not return the Map. I'm using my default MVC project.    The code I made available in the...
asked by 15.03.2014 / 01:40
2
answers

How to filter a list in vue with response ignoring accents and uppercase / lowercase?

I'm doing a filter of a list by name, it works, but if I have a name registered as Hi, the filter does not work when I write higor. computed: { filtered: function () { const search = this.configs.search const users = _.orderB...
asked by 26.08.2018 / 04:57
2
answers

Limit characters and display the number of characters

Well, I have a input for the user to put the name, and under the input I have both the typed characters and the maximum amount (0/50). I wanted you to type in the characters you type, and when you reach the limit you can not type anymore....
asked by 13.09.2018 / 02:49
1
answer

Req and Res in nodejs, problem in understanding arguments

I saw myself with the problem of understanding in depth what the res and req means in node js, but you have to understand the problem, I understand everything about what is res, and what is req and I know for which uses them, but a function for...
asked by 14.09.2018 / 05:23
1
answer

How do I inherit methods from one prototype to another using the 'util' module from Node.js?

I was watching the video of a guy explaining Node.js events and in the end he makes a small module using util.inherit to inherit from one prototype builder to another. Although I know the syntax of call and have gotten a sense of t...
asked by 13.01.2015 / 04:05
2
answers

Events with namespace

I am studying about events in javascript without using jQuery, and I had a question: how can I add / remove events with namespace ?     
asked by 22.01.2015 / 20:14
2
answers

Showing the result according to the load and not waiting for the script to finish displaying the results on the screen

My question is as follows: the code is working as expected the problem when I put a large email list (100) the page gets all in white "loading" and only returns me the result after the script ends to be executed, I need a solution that allows me...
asked by 12.01.2015 / 02:40
1
answer

How to validate multiple fields in a form?

I need help with basic logic ... I have a form with 4 fields that when I click the% button on the button, I need to validate if at least one of the search fields has been filled out. I only managed to validate the first field, but when I leave t...
asked by 12.01.2015 / 11:42
2
answers

How to return the name of an existing object in a JSON

I have the JSON file below: { "uid1":{ "start_time":"20140815", "name":"name 1" }, "uid2":{ "start_time":"20141229", "name":"name 2" }, "uid3":{ "start_time":"20140809", "name":"name 3" }, "uid4":{...
asked by 17.07.2014 / 18:44