Questions tagged as 'javascript'

2
answers

How do I know which script is running in a particular HTML element?

In Firebug it is possible to know which CSS is being applied in the HTML element, but it is not possible to know which JavaScript is running in the HTML element, how can I know this?     
asked by 24.10.2014 / 18:31
1
answer

The variable animation of Controls has not been assigned

I'm trying to make my character walk in one animation and stand in the other. In Animator , I created a parameter of type float walk to do the exchange control between the animations as shown in the image below. Andassignth...
asked by 24.12.2016 / 23:24
1
answer

How to add a bookmarklet with a specific favicon?

I made a small script bookmarklet and I'm trying to add a favicon, but I can not. It is in this bookmarklet that I want to implement a favicon - keepvid.com // Juntar a url ativa na barra de endereço, com url destino e redireciona...
asked by 03.07.2016 / 08:55
1
answer

DIV TEXT fixed only in the space of the DIV FATHER

Hello, I would like to do the following. <div class="pai"> <div class="form"></div> <div class="text"></div> </div> I have a DAD and inside it there are two div's side by side. The heigh...
asked by 13.12.2016 / 08:04
1
answer

Problem with autocomplete jquery-ui via Ajax / PHP

Talk to the people, all good! I have a webserver application that does not have a webserver. I have a webserver application that I have a webserver on. I have a webserver application that has a webservice. are correct for the source to handle th...
asked by 11.07.2016 / 03:56
1
answer

Doubt on behavior $ .post and $ .ajax

I've always been accustomed to using $.ajax() for all my type requests, and this works perfectly. An example that is even occurring now is the following: $.ajax({ type: "POST", url: "XmlTree.aspx/GetChildren", d...
asked by 28.08.2017 / 20:16
1
answer

How to use MutationObserver () correctly?

I know that MutationObserver() is designed to detect changes in the HTML DOM. But I wonder how this works in practice. We created a hypothetical situation, what's up? There is a <div> with id='hipotese' (I be...
asked by 02.08.2017 / 18:39
1
answer

String for Date

I'm creating some parsers and was doing tests to develop Date. This code: value = '2015-12-31 23:16:00' value = value.replace(/(\d{4}-\d{2}-\d{2}) ?(\d{2}:\d{2})?(:\d{2})?.*/, '$1T$2$3'); value = value.replace(/T$/, ''); value = valu...
asked by 01.07.2015 / 20:07
2
answers

Dynamically refresh the php session with jQuery

Well, I have the function below that, with JQuery, I update the display values of the cart values. Everything works: function add(_quant, _preco, _total, _estoque) { quantidade = parseInt($("#"+_quant).val()); estoque = parseI...
asked by 02.06.2016 / 21:25
1
answer

Why does 'window.alert ()' work in the navigation between tabs and the 'window.focus ()' does not?

I have the following method: (function(){ window.addEventListener('blur', openChat); window.addEventListener('pagehide', openChat); })(); function openChat(){ setTimeout(function(){ alert('Há uma mensagem nova!...
asked by 12.04.2016 / 00:24