Questions tagged as 'javascript'

1
answer

Angular 6+: Page update goes to the Login area of the application

I performed the composition of my CanActivate and CanLoad through the class LoggedInGuard. The problem is that whenever I refresh the page, I'm redirected to the Login page, even logged in. Below my LoggedInGuard class @Injectable() export c...
asked by 24.12.2018 / 02:21
2
answers

How to make a button filter results in a datatable?

I have little knowledge of javascript and datatables. I made several unsuccessful attempts to include a button with filter function in a datatable similar to the site: link I have the following datatable on my site (image below). Being that...
asked by 20.12.2018 / 18:25
0
answers

req.body returning undefined when I use consign in the application

I am familiarizing with the expression, so I created a simple Form with two fields, I have a JS file where I get the data from the form and send it through xmlHttpRequest and on the server side, I'm using consign to manage my routes, prob...
asked by 24.12.2018 / 01:57
2
answers

How do I assign target="_ blank" to all external links after ajax finishes loading?

Hello, I have a blog in wordpress where I need all external links to be opened in a new tab when clicking. But these links are loaded by ajax and the function I have is done before ajax finishes loading everything. $(function() { $("a[href^='h...
asked by 23.12.2018 / 14:22
0
answers

How to update a DataTable without reloading the page?

I have a DataTable (plugin) generated from an Array that will mount an online user list. And mount to pagination. But AJAX that returns the list is of type GET and keeps updating the page to check if any ID has logged in and so upd...
asked by 20.09.2018 / 19:56
0
answers

pt-BR in datePicker does not work in AdminLTE 2

Hello, I'm developing a panel and I need datepicker in Portuguese, I already tried to modify the js file itself but the dates disappeared. $('#datepicker').datepicker({ autoclose: true, language:'pt-BR', format: {...
asked by 20.09.2018 / 21:29
0
answers

Back where it was (VideoClub)

Hello, I'm creating a mini video club, and I wanted to implement a system that if the user is watching a movie and if they close the page and re-enter, have a button to continue where they left off (such as also exists in NETFLIX) but I do not kn...
asked by 11.10.2018 / 19:06
2
answers

Dynamic Fields for Controller - ASP.NET MVC

I have this JavaScript which creates new fields for me when I need it and it makes the call to create JSON . This counter within the adicionarCampos() function is required for something else regardless of what I need, even...
asked by 15.10.2018 / 17:16
1
answer

How to change the value of a button to the value of an array?

ItriedtousegetElementeByIdbutitisnotworking.                        HTMLQuiz                         <divclass="buttons"> <!--Creating four button element for four options--> <button id="btn0"><span id="choice0"...
asked by 15.10.2018 / 20:00
2
answers

Sending problem via URL (GET)

Good morning friends, I have these buttons here: <button class="btn-excluir" data-id="1">Primeiro</button> <button class="btn-excluir" data-id="2">Segundo</button> <button class="btn-excluir" data-id="3"&...
asked by 28.09.2018 / 14:38