Questions tagged as 'javascript'

1
answer

Calculate Auto Aspect Ratio Automatically

With the example below we calculate the aspect ratio of an image by setting Width / Height manually, so the aspect ratio value is generated to be put in padding-bottom: What I would like is something similar: I want to get the widht / height...
asked by 08.03.2018 / 17:52
1
answer

Find values in the page source code

You have this website , which generates a table of reserved and available tables, with no need to login: Oninspection,youcanseethestyleofthediv(ex:class="day closed" ): Butinthesourcecodeitsaysthis:<divid="reserve" class="containe...
asked by 08.03.2018 / 21:00
2
answers

Change bgcolor according to class

For now I do not have much knowledge in JS and I would like to ask a question ... I need to change bgcolor according to the 'active' class. For example: "if the active class is in conjunction with 'banner-bg-1', the color of the body will be...
asked by 09.03.2018 / 12:16
2
answers

What is the difference between prop and emit in vue.js?

I know that prop is from parent component to child and emit is from child to parent. But I would like an example of using the two so I can better understand the concept!     
asked by 02.08.2018 / 05:44
1
answer

Convert Date and Time of Electronic Invoice - Javascript

The electronic invoice generates a qr-code from a url. This url has several parameters, one of them is the date and time of the issue, which according to the revenue documentation reads:    The value should match the conversion to hexadecimal...
asked by 30.07.2018 / 16:18
2
answers

Display rows of a table according to filters

I have the code below where I have a onchange that should filter the status of each request (hiding / showing table rows), however it is hiding the header of table . Code: <!DOCTYPE html> <html> <head>...
asked by 16.04.2018 / 14:41
1
answer

GET FORM DATA JS [closed]

So I wanted to do the following has a form that has multiple input fields, so I wanted to do the following loop or something like that to get the values of the fields using jquery or js (pure) / p> I'd like to know one way to do this     
asked by 30.07.2018 / 13:57
1
answer

Validate fields with OnClientClick

I'm trying to call a JavaScript function through OnClientClick . The problem is that when running in the browser it does not validate the fields, it is as if the function was simply not called. JavaScript: function VerificaCamp...
asked by 18.04.2018 / 14:56
2
answers

Is it possible to put a timer before running a post / reload on the page?

I have the function below that at the end of the operation of a reload on the page in order to update the statuses. Would it be possible to put a wait time to run this reload? function ConsultarChangeDll(numero) { var status = $("...
asked by 17.04.2018 / 14:33
2
answers

Search result open in new tab

I have a simple search engine that does the html search itself, how can I make the search results show up in a new tab? <input type="text" placeholder="Digite sua pergunta" autofocus name="query" size="16" style="font-size: 11 pt; colo...
asked by 16.04.2018 / 15:20