Questions tagged as 'jquery'

1
answer

Doubt Scope of Javascript Variables

In the code below I try to use the lastLatitude and lastLongitude variances outside the local scope. I need them in the beginning. I've tried many things, can anyone help me understand? <script> var lastLongitude = ""; va...
asked by 02.03.2017 / 18:56
1
answer

How to rearrange divs (moveup / movedown)

I need to insert text blocks and then have the freedom to reorder them. In the first few inserts it works, then the divs begin to get lost and the first one jumps to the last one, for example, when in fact it should just descend a div. You...
asked by 23.01.2017 / 19:42
1
answer

Querying BD after leaving the focus of the input and returning results without refresh?

I have a table that has about 30 input fields to perform a posting, for example: <input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlength="8" /> <input type="text" size="8" name="Codigo[]" placeholder="Codigo" maxlen...
asked by 17.03.2017 / 18:39
1
answer

Search in all columns of a table

I'm using the below function to do a "live" search on a table. The problem is that I want it to bring data into all the columns, and it's currently only bringing the first. function pesquisaTabela() { // Declare variables var i...
asked by 23.01.2017 / 15:00
1
answer

Disable submit button after validating empty field using jquery

I want to disable the submit button to validate some fields preventing them from being blank. But there is a catch, as these fields are only displayed according to the selection of a combo. Eg: Combo qtd of employees (1 to 5) Selecting 1, dis...
asked by 24.01.2017 / 17:27
1
answer

How to do an action in jquery expect another one to finish to start?

I'm trying to create a menu where the search bar appears only after the li's of the menu are gone, for that, they recommended me the .delay() function of jquery , but I'm not able to achieve these effects, directly search and...
asked by 24.01.2017 / 14:42
1
answer

PHP Receive data from a CSV via URL

Good morning, I need to know if there is a possibility of doing fgetcsv() using temporary of a .csv file coming from a url. The reason you try to do this is because Chrome does not overwrite any saved files. You could do the...
asked by 14.02.2017 / 13:34
1
answer

Hide / change error message in the console

I try to get a file that does not exist on my site, like: try { $.getScript('app/controllers/arquivo-errado.js', function(){}); } catch (e) { // caso de erro } The error is returned in the console:    GET URL ... app / controller...
asked by 11.01.2017 / 18:06
3
answers

Disable modal window button using Jquery

I have a modal window with a button, and I would like that, when I pressed the button (a tag), it would be disabled and I would like to "Wait ..." See my code: //#idDivModal4 -> modal //.btn-enviar-lembrete -> tag a (botão) $('#idDi...
asked by 10.01.2017 / 15:08
3
answers

Limit dynamic fields in jquery

I have this function to generate fields dynamically, as I can by a limit of generated fields. $(function () { var scntDiv = $('#dynamicDiv'); $(document).on('click', '#addInput', function () { $('<p>' + '...
asked by 11.01.2017 / 20:26