Questions tagged as 'javascript'

2
answers

Select option when clicking button

I have 3 buttons outside of the form tag and when clicking on any of them, I need the value to be selected in the select, follow image and code for better understanding: Buttons (outside tag form) <div class="botoes_action"> &l...
asked by 23.11.2016 / 14:44
4
answers

How to group an array of objects in javascript (Angular)

How to read an array of objects and return only objects that contain the same value in multiple attributes? I made this object array as an example. var arrayDeObjetos = [ {"dia":1 , "desc":"Nigth","mes":1}, {"dia":1 , "Descricao":"Brilha",...
asked by 22.11.2016 / 17:35
1
answer

How to develop an Auto Text Expander with JavaScript or jQuery?

I want to create multiple keywords to work as a shortcut to auto completion. "oi." daria "Olá Amigo" "ate." daria "Abraço e até mais" For example, I type in a textarea of my site the word "test." and automatically and immediately this shor...
asked by 05.06.2017 / 08:56
1
answer

Close modal window when user clicks anywhere outside of modal [closed]

I'm using a modal window plugin, but I'm not able to make the modal window close. JSFiddle example: link (function($){ $.modal = function (el, options) { this.options = options; this.$el = $(el); this.$target = $(el...
asked by 05.06.2017 / 02:20
1
answer

Logical help with PHP using Twitter API

Well, the idea is this, I'm using API of Twitter to do user authentication, I'm using the following resource: link . I used this video to help me authenticate, it's exactly the same: link The logic: All users who authorize th...
asked by 04.06.2017 / 10:06
1
answer

Can organic search visitors count?

I wonder if there is any tool / api to know from which website the visitor came to, to account visitors coming from the search engines. Thank you all.     
asked by 06.10.2016 / 21:51
1
answer

RequireJS data-main does not work

Hello I'm always getting the same message when trying to run my index.html file that attempts to reload jQuery from requireJS.    /TestRequire/jquery.js net :: ERR_FILE_NOT_FOUND Error: Script error   for "jquery" link index.html &...
asked by 06.10.2016 / 15:58
1
answer

Disable Input if Determined Button Radio is Selected

I have a registration form, which the person selects if it is an Individual or Legal, and the fields to fill when I select and have a Jquery script that does the validation so that it is mandatory to select and fill these fields after the select...
asked by 06.10.2016 / 16:38
2
answers

What is the correct way to use a package installed by npm? [duplicate]

To explain my question I will use jquery as an example. I installed jquery from npm (npm install jquery). Then npm created the folder node_modules \ jquery \ dist where is the jquery file that I need (jquery.js). To use this file should I p...
asked by 19.11.2016 / 22:26
1
answer

Convert Data generated in C # to ISO format in Javascript

Hello, I'm doing a website where I use an API built in C #. My problem is that when I get a date from the server, it sends me that format: [{ "dataLiberacao":"\/Date(928160400000-0300)\/", "dataReg":"\/Date(928160400000-0300)\/", "...
asked by 21.11.2016 / 14:02