Questions tagged as 'javascript'

2
answers

How do I store variables within the browser cache? (JS)

I am making a form and want to store the data that the client types in the browser cache, if the tab is closed the client does not have to type everything again. What is the best way to meet this need?     
asked by 02.10.2018 / 00:30
1
answer

Filters in Vue only work with interpolation, do not work with v-text. Because?

I know that to use a filter in Vue , you can make the call as follows: Vue.filter('hello', function (input) { return "hello, " + input; }) new Vue({ el: "#app", data: { name: "Wallace", } }) <sc...
asked by 25.10.2018 / 21:15
1
answer

How to check if a String is encoded in base64?

I'm working on an email application using VueJs / Quasar on the client and HapiJS on the server, and some emails (depending on the sender) come with base64-encoded text, and some do not. To solve this, I need to find a way to identify if the e...
asked by 24.08.2017 / 17:00
1
answer

How to get value [[PromiseValue]]?

I'm having difficulty getting value [[PromiseValue]] Here is an example of the image in debugger mode: Followthecodebelow:Html:<imgid="new_profile_photo" alt="Perfil"> JS: $('#new_profile_photo').croppie({ url: e.t...
asked by 31.08.2017 / 03:13
1
answer

Car Mask in jQuery

I did not find on the internet a mask in the format BBB-1234 for car signs, the ones I found only validate when the field loses focus and even then only say if it is valid or invalid . You would need something in the first 3 characters t...
asked by 01.09.2017 / 17:03
2
answers

Select values from a td with click

The code below is a page, which the user types the name of a city, and checks for similar results. With this, it brings multiple results into a dynamically created table, depending on the data brought back from the results, this is already worki...
asked by 06.09.2017 / 14:49
3
answers

display var Javascript in div html

The code <section class="content"> <span></span> <span></span> <script type="text/javascript" src="../js/purl.js"></script> <script> var vars = geturlvar()['Nome'];//traz...
asked by 25.05.2017 / 20:07
1
answer

treatment of multiple promisses in angular

I'm developing a code and at the same I build some areas of influence for given locations (with coordinates and radius of distance or walking time from the coordinate), so when I finish building it I have to query the database postgres to...
asked by 03.08.2017 / 21:38
1
answer

How to display the text in the datalist and not its value?

I made a coupled autocomplete in a input field without much difficulty, as shown below: <label>Professor</label> <input type="text" list="list-professor" name="professor_id"> <datalist id="list-professor">...
asked by 11.08.2017 / 16:05
2
answers

how to make editable radiobutton?

Next, I will have to add radiobuttons dynamically, in that they will have to be able to write. They come as label ne? I needed to be able to edit this label, it could be a text too, the important thing is to be able to add the radiobutton and th...
asked by 12.06.2017 / 20:11