Questions tagged as 'javascript'

1
answer

Read files synchronously in Cordova

Is there any way in Apache Cordova to read the contents of a file and save to a variable in a synchronous way? This is because, in the Cordova File API you should use a callback function when reading a file to get the result , and ends up be...
asked by 14.01.2017 / 19:07
1
answer

ProgressBar does not update according to request XMLHttpRequest - Jquery / Asp.net

I'm building an application to upload videos and photos, and I'd like to put a ProgressBar to show the progress for the user, I found some questions to answer (#), but I'm having a bit of trouble understanding, so I could not do the Prog...
asked by 13.01.2017 / 13:54
1
answer

Send a textarea when pressing enter with JS?

I'm having problems with my application because I have two types of textarea on the same page. One creates the post and the other creates the comment for this post. The following code submits the post textarea: document.onkeyup=function(e){...
asked by 26.02.2017 / 03:17
1
answer

Handle the Scroll event in Jquery

Good afternoon, I have a Navbar that starts transparent I hedge this via query: $( "nav" ).css('border', 'none', 'important'); $("#hamburguer").css('background-color', 'transparent', 'important'); So far beauty, but when I go down I want...
asked by 26.02.2017 / 17:57
1
answer

How to execute a php function in ajax?

I'm wondering how can I do to click a button and onclick this button I call a php function, they said that I have to use ajax, however I do not have ajax knowledge but I'm going to study, could you help me? <button id="loadmore" onclick="...
asked by 17.03.2017 / 15:23
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

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
2
answers

how to direct a page synchronously in nodeJS

Good afternoon I have a page called index.js in the route folder of nodejs express. When the pendingAprovals page is called I would like the index to call a webservice to send a JSON to the pendingAprovals, but the node treats the asynchronou...
asked by 24.01.2017 / 14:59
1
answer

limit of requests Google maps api

I'm developing a web application with google maps api javascript. The limit is 25,000, however, it's popping up in the tests I've done. Someone with good knowledge about could inform: Is there a time zone to use Key? How frequently will th...
asked by 14.02.2017 / 13:48