Questions tagged as 'javascript'

0
answers

AngularJS ng-repeat does not display data

I made the request via get using laravel as backend. However, if I update some data in the database itself, I need to refresh the page where the angular is loaded for it to update. Using the angle, would not it have to update automatically? &l...
asked by 30.05.2018 / 23:30
0
answers

How to cache signed files (Service worker)

Several front-end applications implement a signature template in the files to control the cache, and every change in the file that signature changes. Signature examples: sw-d58e3582afa99040e27b92b13c8f2280.js sw.js? _gc = 20180101 How d...
asked by 30.05.2018 / 20:35
1
answer

Listing users of a json api in a html table with javascript

Well, I'm pretty new to javascript and would like to know how to do the API call in JS and then I need a loop to list calls, they're in array in json. Can someone help me with this question? code that I'm using to call the API function list...
asked by 30.05.2018 / 23:00
2
answers

Send Display Text of an Enum by Json

Well, I have an enum for the days of the week, being: Segunda = 2, [Display(Name="Terça")] Terca = 3, Quarta = 4, Quinta = 5, Sexta = 6, [Display(Name = "Sábado")] Sabado = 7 So I build an object that has a da...
asked by 19.01.2016 / 20:50
1
answer

How to insert C # string in CefSharp script

How can I insert a c # string into the script? string teste = "testando"; chromeBrowser.ExecuteScriptAsync("$(document).ready(function() {alert({0})}); ", teste); I tried this code but it did not return anything     
asked by 30.05.2018 / 22:01
1
answer

Calling file.html from a function

The most common is that links to other html files are made through the <a href> tag, however, how would I call a .html file from within a javascript function? That is, the user clicks the link whose onclick event is pointing to an...
asked by 30.05.2018 / 23:20
1
answer

Is there any way to translate the months into the input type date?

How do I translate the input of type date? no html I paid lang="pt-br" but still still English. The image is just an example!     
asked by 25.05.2018 / 16:34
0
answers

Download jQuery file

I have a jQuery click function and wanted me to click on it button to download a PDF file, how do I do this function? $('#download').click(function() { //seria aqui a função } <button type="button" id="download"> Dow...
asked by 25.05.2018 / 16:09
2
answers

Tips for plan page and how to fix error: Uncaught TypeError: Can not read property 'scrollHeight' of undefined

Good morning everyone! I'm trying to make a plans page: link I'm having trouble scrolling. You can see that only with the club plans does it work and the others does not work. According to the browser is causing this error: Uncaught Ty...
asked by 25.05.2018 / 16:43
0
answers

Facebook share does not work correctly with passing parameters in URL

I am making use of facebook sharing. But in the URL of the button I'm also passing the user id to do actions later, as follows: <div class="fb-share-button" data-href="https://meusite?id=<?=$id_pessoa?>" data-layout="button"&g...
asked by 25.05.2018 / 03:09