Questions tagged as 'javascript'

1
answer

Phonegap / Connection with MySql Remote without PHP

I would like to make a connection to a remote MySQL database through an application compiled for Phonegap without the need to use PHP. The bank would not be inside the device but the network on which the device is connected. Some websites say...
asked by 16.09.2014 / 18:34
1
answer

Select specific items within a while loop

I have the following HTML inside a PHP while fault: <article data-id="1">...</artcile> <article data-id="2">...</artcile> <article data-id="3">...</artcile> <article data-id="4">...</artcile> <...
asked by 01.09.2014 / 17:19
2
answers

Return parent tag ID when clicking a button

I have a set of buttons where I want to return the ID of the parent tag when a button is clicked to implement a function. <div id="botoes"> <button data-for="cod" onclick="checkbox(this)">cod</button> <button data-for=...
asked by 10.09.2014 / 19:03
2
answers

document.location.reload () does not re-send post same as refreshing page

I had to make some changes to a part of the system, and in that part before I was just passing the data through GET, but now I can go through both GET and POST, but I'm having a problem with document.location.reload() does not re-send the...
asked by 17.09.2014 / 19:45
2
answers

Paste description select - AJAX

I have this function and need to load the same description as select. In this function I can just load the id, how can I do it in place of the x (what is the id) I take the description? function myFunction() { var x = document.get...
asked by 05.07.2018 / 20:31
2
answers

Concatenating the elements of an array

I have an array in Javascript: var array_soma = [ "parte 1", "parte 2", "parte 3", "parte 4", ]; I would like to concatenate each element into the...
asked by 07.07.2018 / 02:14
2
answers

Increase textarea's size

I'm trying to use Sweet Alert 2 . I would like to increase the textarea field by using the rows attribute, but it is not working. How do I increase the size of the field? $('.btn').on('click', function(){ telaModal() }); functi...
asked by 10.07.2018 / 20:29
1
answer

Use prompt return with ternary operator

How can I use his direct return on expressions? Because I can only use it if it will open the prompt 2 times. I want the value, if in the condition, to be what I want, it (value) falls into the direct expression, without having to open the pr...
asked by 09.07.2018 / 14:54
1
answer

javascript function sort order in descending order [duplicate]

This javascript function sorts in ascending order How do I get her to sort out in order? ordenaNomeCompleto: function(a,b){ var ans = a.nome_completo.localeCompare(b.nome_completo); return ans; }     
asked by 08.07.2018 / 01:36
2
answers

Action while the button is being clicked

Is it possible to know if the left mouse button is clicked using Javascript? It is not whether it has been clicked, but whether it has been pressed and still continues. When I click it it changes a value and after dropping it back the value,...
asked by 05.07.2018 / 19:10