Questions tagged as 'javascript'

0
answers

Upload a url when you click player play

Hello, I am trying to load a url (open link) when I click play from a player that is a Wordpress (WonderPlugin Audio Player) plugin. I imagine it can be done in javascript, but I do not know how to do it. The player has class set to play. Bes...
asked by 19.07.2018 / 19:21
1
answer

Doubt with jquery content validation;

I have a javascript that should run only when the content value of the edit is different from null or empty, but the same is always running. <script type="text/javascript"> function AdicionarClasseMenuSelecionado(){...
asked by 19.07.2018 / 16:29
0
answers

Problem exporting function from node.js

I'm a beginner in node.js and I created an API that validates a CPF and returns a value of true or false, but I'm not able to send the return of that function to my other application. Here is the code: export defaul...
asked by 27.07.2018 / 16:32
2
answers

Pick button id clicked when you click another button

I need to make when the user clicks the radio button, it saves that value of the id and when clicking on another button "confirm" it shows the id of the first button clicked. I tried to do with localstorage, but it ends up showing all the id'...
asked by 19.07.2018 / 17:07
1
answer

Jquery scroll fixed on top when clicking on a div #

Next I have a problem because when I clicked on a menu anchored by a #id it did not have the scroll on top and so the content was cut because now I put this function and it worked perfectly however when I look at the console error Jquery:...
asked by 19.07.2018 / 16:34
0
answers

Adapt request with Express for AJAX

It is possible from a request using express, convert it to ajax, or even if you can merge them. Example: app.get('/alunos',(req,res) => { const client = new Client(); client.connect() .then(() => { return client.query('SELEC...
asked by 27.07.2018 / 04:38
1
answer

Error while running mobile react-native app

Running react-native run-android gives the following error: FAILURE: Build failed with an exception. What went wrong: Execution failed for task ': app: mergeDebugResources'.    Error: java.util.concurrent.ExecutionException: co...
asked by 04.08.2018 / 04:50
0
answers

ServiceWorker save form

I'm currently handling the fetch events in my ServiceWorker as follows: self.addEventListener('fetch', event => { // For 'POST' method if ( event.request.method !== 'GET' && event.request.method !== 'HEAD' &&...
asked by 04.08.2018 / 06:10
1
answer

Create the code to fill in the vector - Javascript / Logic

I have a problem with an exercise on arrays. The question is this: Create the code to populate the array with the following values:    3 4 7 12 19 28 39 52 67 84 I've done the other exercises on this list, my problem with this is in logi...
asked by 19.07.2018 / 01:07
1
answer

Validation of the field "Person and Group"

Hello, I'm using the default Sharepoint form, and I want to do a validation on a "person or group" field, basically the edit form can not save if this field is blank. I've tried it in some ways, but what I understood with this type of field i...
asked by 16.07.2018 / 20:28