Questions tagged as 'javascript'

1
answer

Onclick point to function with $ _SERVER

Due to an obscure system need, when clicking a button, I need to know the IP that triggered the same to direct the correct page. With $_SERVER['REMOTE_ADDR'] I have this information. But how could I pass this on to a JS? More or less this...
asked by 05.09.2016 / 20:45
1
answer

Get the next input after an input (object)

I want to get the object of the 2nd input. Since I have more inputs with class 'check-date2', I want to get the element immediately after the first. HTML <div class="form_line"> <div class="column-50">...
asked by 30.08.2016 / 13:35
1
answer

alert system with jQuery

I'm trying to set up a custom alert system with jQuery. It works perfectly, but I always have to forget the div in HTML. Is there any way for jQuery itself to do this? It is possible to just call the Alert.show('Alert Modifixxxxcado', '...
asked by 31.08.2016 / 16:32
1
answer

Call Java function (Android) inside a hybrid mobile application with JavaScript

We are building a hybrid web application, which needs to print to a portable printer by bluetooth . But the printer is imported and only comes with a Java SDK, which is not our strong! We needed to print from the JavaScript code, but I'm not...
asked by 31.08.2016 / 22:17
2
answers

How to add a PHP variable in JavaScript?

I need to play a Volume variable within a Option that is, the person selects a category and as that category appears the items in the list in front of the items I need to show the volume, I am not able to make this volume appear in front...
asked by 30.08.2016 / 15:53
1
answer

Problem with zIndex JavaScript

The script will be a two-button rotating banner: forward and back. I'm getting to know JavaScript better and I have a question. Why does not he recognize AnteSlide and ProxSlide? Follow the code: var primeiraExecusao = true; var s...
asked by 02.09.2016 / 22:20
1
answer

How to change the position of an html element with javascript?

I want to make the following position change, I have a div and inside it other div's for example: <div class="div-principal"> <div class="div-1"></div> <div class="div-2"></div> <div class="div-3"&g...
asked by 31.08.2016 / 22:34
1
answer

Preview input field does not work

My browser is not displaying the image. Something wrong with this code? $(document).ready(function () { $("input[name='fun_imagem']").change(function () { readImage($(this)); }); }); function readImage(input) {...
asked by 02.09.2016 / 22:54
1
answer

Complex search with MongoDB

I have a structure in mongoDB that has different quantity of items inside an array called "items". To do the search, I am using the command below, which first transforms the content into string, because below this.items there is a different stru...
asked by 24.10.2016 / 13:02
1
answer

Call javascript function with combo

function SemAcao() { return false; } function Mostra(nome, modelo, preco) { var nom = document.getElementById("bolnome"); var foto = document.getElementById("bolimg"); var prec = document.getElementById("bolprc"); nom.innerHTML = "...
asked by 24.10.2016 / 10:36