Questions tagged as 'javascript'

4
answers

How to validate CPF on client side with script?

I'm working with a CPF validation in my controller , but I need to validate when the client exits the input of the CPF and then return a message advising when the CPF is incorrect, alert or something similar. I tried to do somethin...
asked by 20.02.2015 / 01:48
1
answer

Angular 2 base64 image how to use?

I have an "ERR_INVALID_URL" error and it does not load the image. Does anyone know how to solve it? My html and Ts are like this. //Aqui está vindo a url do servidor let a = value.params["dataBuffer"]; //Aqui estou convertendo o b...
asked by 02.10.2018 / 21:25
0
answers

Doubts about cookies in variable and JS

Is it possible to create a variable in javascript or jquery and store a cookie in it for a certain X time?     
asked by 02.10.2018 / 19:58
0
answers

Display TXT in TextArea

I have this code, where I set my Log file in a TextArea. But when I click the Load log button, it shows the log in a line, how do I break line? I would also like the log to display in textArea at runtime, in real time, and not just at the end of...
asked by 02.10.2018 / 21:50
1
answer

Result Search not found

Good morning! I have two JS, one that emulates something like a database following the example: var menu; $(document).ready(function() { menu = new clsMenu(); var Exemplo01 = menu.addFolder("Exemplo", "Exemplo") }) And another t...
asked by 25.09.2018 / 15:23
0
answers

My array is always empty

I'm having a challenge when making ajax calls in JQuery. I declare an array and after an ajax call I send a POST request, I want to get the id of the new object and store it in my array. Here is the code. // Change view_1 to the view you w...
asked by 25.09.2018 / 03:53
1
answer

Enable field when loading page if input is filled with specified word

I have a registration form that when clicking on document type, if it is "RG" has a function in JS that shows a field that is defined in css as style="display: none". But when loading from the base when doing the update page, I would like to...
asked by 11.10.2018 / 12:10
0
answers

Problem with Promises in javascript (discord bot)

I'm not getting any way to make a part of the code that works with promises work. In the code, I do a check in arrays (obtained by a json) to know if youtube video is blocked or not, however, I need the rest of the method to wait for that part t...
asked by 11.10.2018 / 06:42
0
answers

How to retrieve multiple values from firebase database in cloud functions

I have the following function that I did in Java, it solves my problem, however I am wanting to play with javascript too. So I had the following problem, I only found functions that retrieve unique values, and I wanted a function similar to d...
asked by 11.10.2018 / 01:57
1
answer

Angular Accessibility

Hello, I'm developing a project and implementing accessibility in it. So fine, the screen reader works okay. My problem is when I exit from screen A and I go to screen B, on screen B has a loading, I would like to warn the screen reader that...
asked by 27.09.2018 / 22:48