Questions tagged as 'javascript'

1
answer

Start nodejs on Azure

I have a problem to start the nodejs on the azure server, I already configured everything right and the site is already in the air, however I have a chat on node, using socket.io, see the code below (index.js): var express = require('expr...
asked by 24.10.2016 / 14:39
1
answer

Upload photos with preview Javascript / Ajax

Hello, I'm doing an administrative site, this site will have the option to upload photo, the user could upload up to 3 photos. My idea was to make facebook type, where you click and add the photo of the post, the problem and what I wanted as...
asked by 12.09.2016 / 20:34
1
answer

Ionic show latitude and longitude in view

I'm not able to display my location in the view, but using console.log (long) I can see from the console my location. Where can I be going wrong? ' .controller ('GeoCtrl', function ($ scope, $ cordovaGeolocation) { var posOptions = { timeou...
asked by 13.09.2016 / 16:51
1
answer

Function to rearrange values in a group of 5 fields of a form, using jQuery

I have 5 fields of a form and I would like, through a function, to rearrange the values of them by having the first fields filled and the last ones empty, according to the existing values in ascending order. > For example: HTML: <input...
asked by 14.09.2016 / 15:54
1
answer

Use html attribute as javascript variable

I'm developing a PHP system that uses an extension for dynamic forms, where I can click a button to add fields (EX: A request can have multiple items, where items are fields added dynamically). The extension I use (I do not think it is necess...
asked by 13.09.2016 / 19:46
1
answer

Fixed navbar doubt on top with Bootstrap

When I add the "navbar-fixed-top" class it "eats" 50px of the page, I use navbar, links, to divs and whenever a link is clicked the first 50px are underneath the navbar, what I want to do is prevent these px from being under the navbar when the...
asked by 13.09.2016 / 20:00
3
answers

Receive two positive numbers and repeat the interval between them with while?

How to make a JavaScript program that receives two positive numbers and repeats the interval between them using while ? var num1 = Number(window.prompt("Entre com primeiro numero")); var num2 = Number(window.prompt("Entre com segundo num...
asked by 25.09.2016 / 03:21
1
answer

PHP or JS Translation

I have a one page, where I must perform translation. At first I was thinking of translating with JS, to do something dynamic, that is, the person would click the button, I would call a .json file and perform the translation. But then I found...
asked by 25.08.2016 / 00:34
1
answer

Display 3 numbers in ascending order [duplicate]

I need the user to enter 3 values and I will show the user the three values ordered. <html> <head> <title> </title> <script type="text/javascript"> var idade1, idade2, idade3; idade1 = prompt ("Informe a pri...
asked by 15.10.2016 / 19:52
1
answer

Function to create buttons from an object

I need to create a function similar to this: criarBotoes({ "Abrir": function(dados){ alert("Abrindo..."); console.log(dados); }, "Fechar": function(dados){ alert("Fechar..."); console.log(dados); }, }); I tried the f...
asked by 09.09.2016 / 03:07