Questions tagged as 'javascript'

2
answers

Infinite scrolling in one page with static data

I have the following structure and want to limit the amount of "class / posts" to display. I want to create a button so that, when clicking, it displays and goes showing more and more "class / posts". I only found tutorials that explain how to d...
asked by 28.08.2018 / 21:52
1
answer

How to filter the format of the file by the input type file?

When it is sent I make a validation checking if the chosen file is of the format that I need: function validaExtensao(id) { var result = true; var extensoes = new Array('xls'); // Arquivos permitidos var ext = $('#' + id).val().split(...
asked by 06.01.2016 / 18:32
1
answer

When checking checkbox, leave link visible

In my content management system, there is a checkbox on every item in the list, either to edit, delete, or view. It turns out that this button appears all the time, and if the user does not check anything, it is practically useless . I would...
asked by 12.02.2016 / 00:14
4
answers

Maximum ASP.Net MVC request size

I'm uploading Image using JQuery. I have limited the image to a maximum of 2mb, however when I send an image larger than 2mb, an exception is made saying Maximum request size exceeded. What I did: function fileUpload() {...
asked by 30.03.2016 / 22:23
3
answers

JavaScript encapsulation

If you create a global JavaScript variable, it can be easily accessed from the console: <script> var minhaVariavel = 0; <script> But if I create it like this: <script> $(document).ready(function (){...
asked by 21.10.2015 / 15:59
3
answers

Check if the values in an array are all the same or all different

I wanted some function that would return TRUE when all values within an array were equal or all were different, and return FALSE if they were not all equal and not all different. If you have not understood, I'll explain with examples: Ex:...
asked by 29.07.2015 / 18:37
4
answers

JQuery find tree

I have the following context: <div class='pai' id='item'> <div class='form'> <div class='filho' id='item1'> <div class='filho' id='item3'> </div> </div>...
asked by 21.09.2015 / 15:09
2
answers

Why when using Object.create to create the property __proto__?

I just asked this question How to clone an object in javascript? And I had another question. When I create an object from another with Object.create , the __proto__ attribute containing the contents of the object passed by the...
asked by 26.11.2015 / 18:19
2
answers

Assigning a value to my td within a table with jQuery

I can not assign a value to my td within a table, it contains% dynamic% as in the example below: <table class="table table-condensed table-hover" id="tabelaDependentes"> <caption>Lista de Dependentes</caption> <the...
asked by 11.11.2015 / 19:52
2
answers

Verify that a parameter has been supplied to the function

Assuming a JavaScript function with parameters: function minhaFuncao (param1, param2, param3) { // fazer algo ... } And then using it as follows: var param1 = "bubu"; minhaVariavel = minhaFuncao (param1); or var param1 = 30,...
asked by 06.04.2015 / 12:24