Questions tagged as 'javascript'

1
answer

Dynamically retrieve all GETs from the URL

I'm dynamically loading my views with ajax using: view = getUrlParameter('view') ? getUrlParameter('view') : window.location.href+="?view=newusers"; $.ajax({ method: "post", url: "views/empregador/" + view + ".php", data: { auth: 'a...
asked by 04.02.2018 / 03:36
2
answers

regroup values from an array into a new array

I have an array of values like this: [{season:1, episode:1},{season:1, episode:2},{season:2, episode:1},{season:2, episode:2}] What I want to do is take the key season and group it in a new array like this: {"season 1":[{episo...
asked by 30.01.2018 / 18:11
2
answers

function to display more items in an ul

I need only 5 items to be shown and if you want to see more items they need to click the 'see more' button and 5 more items will be displayed. Remember that there is no limit quantity of items. <ul class="list"> <a href="loja...
asked by 02.02.2018 / 19:16
4
answers

Problem calling javascript function

I'm doing a web application with javascript, my js file has several CRUD functions, I wanted it when HTML was loaded, called two functions, so I added this code: document.addEventListener('load', function() { ler() //le os dados do firebas...
asked by 29.01.2018 / 01:01
1
answer

What is the difference between text / javascript and text / x-javascript? [duplicate]

Content-Type: application / x-javascript and Content-Type: application / javascript     
asked by 01.11.2017 / 14:35
2
answers

Pass jquery parameters to Url.Action ASP.NET MVC [closed]

I'm having trouble setting up a URL with parameters. Until then I have been using @Url.Action , but the second parameter dataPesquisa is going null. I imagine that when the parameter passed directly to @Url.Action C # s...
asked by 31.10.2017 / 16:37
1
answer

Reload Web Page

I intend to click on a button to reload the page. Warning that <a> is in a navbar file is external to the original file. I call navbar through php and this button is in navbar . Below is the code that I...
asked by 01.11.2017 / 23:55
1
answer

How to display time in 24 hour format using datetimepicker?

I'm trying to display in PM format, but whenever I select at timepicker it arrows as AM. $('.datetimepicker').datetimepicker({ lang: 'pt-BR', timepicker: true, format: 'd/m/Y h:i' }); WhenIselectthetime,example21:00itarrowsas09...
asked by 28.10.2017 / 04:14
1
answer

Updating javascript

I'm developing an accountant for Black Week. However, I have a question: will the accountant even change the date when it arrives on the 21st? Or is it better to create 2 files and change via FTP on day 21 at 0:00? (I'm a beginner, so the doubt)...
asked by 30.10.2017 / 18:16
1
answer

How to add variables correctly? [closed]

I have a series of checkboxes where the user must select several options and each option increments one or more variables. // Variáveis das características citopáticas var hipercromasia = document.getElementById("hipercromasia"); var cromati...
asked by 02.10.2017 / 05:59