Questions tagged as 'javascript'

1
answer

pass a variable to a url

$(document).ready(function () { var codigo = "abC"; }); <a class="btn btn-default" href="/meuApp/pagina?codigo=" + codigo + >Cancelar</a> Do not even open my page that I put this to. What am I missing?     
asked by 04.04.2017 / 19:09
1
answer

How to get the position X and Y of an element, relative to the screen?

I would like, when an element is clicked, to give it a get in its coordinates on the page. The issue is neither the onclick event, but how do I get these coordinates? No libs / frameworks, please.     
asked by 25.03.2017 / 02:27
3
answers

How to focus on a row by the contents of a td column?

I created a function to give focus in line of a table , in this function I have to find the cell with the same values that I will pass by parameter. She wished that when she found the line she was looking for, she would just evidenc...
asked by 27.03.2017 / 15:49
2
answers

How to remove video download option

I would like to remove the options for downloading the video (I know this will not prevent it from being downloaded through other means.) But the idea is only to make this difficult for more laymen. I have the following example: link Wher...
asked by 29.03.2017 / 16:15
2
answers

Difficulty in using ob_start (); o ob_end_flush (); and their like? [closed]

Follow the programming lines. I've even read a material that was available here in stackoverflow but I still can not solve my problem. I am an amateur programmer and due to this Warning I can not access another part of the Panel that concerns...
asked by 30.03.2017 / 19:25
1
answer

JavaScript - Focusout does not activate AJAX

Hello! I'm having a problem with JS which is as follows: The focusout event is not activating $ .ajax JS: $('.focusout_input_budget').focusout(function () { var amount = $(this).val(), id = $(this).parent('.line-table-products').att...
asked by 08.06.2017 / 22:35
1
answer

Check if the given URL is an image

I'm doing an application in Node.js, and I want to make a custom background system using the URL given by the user, I would like to know how to check if the URL given by the user is an image, and if it is not , the application gives return...
asked by 07.06.2017 / 23:02
2
answers

.onscroll is read only once

I'm having some problems with a .onscroll function: window.onscroll=function(){ if(document.documentElement.scrollTop>5){ menuPrincipal.style.backgroundColor = "rgba(0,0,0,1)"; }else{ menuPrincipal.style.backg...
asked by 28.03.2017 / 14:46
2
answers

How to clean special characters from document.getElementById ("humidity"). value;

I am putting my payload but it is coming like this: { "mode": "sync", "messageType": "57cd765743f3f9c473d5", "messages": [{ "Humidity": "99.1", "Temperature": "99.2", "Brightness": "99.3", "Timesta...
asked by 08.06.2017 / 15:35
1
answer

Get value script Confirm and pass to PHP

Can you do this? Does the confirm data of a <script></script> go to the URL? To work in PHP using $_GET[""];     
asked by 12.06.2017 / 22:57