Questions tagged as 'javascript'

2
answers

Detect whether the event was triggered by the user or via script

I need to detect if the event ( click ) was triggered by the user or by the trigger method of jQuery. By analyzing the event parameter I found two properties that I could use for this check: when the event is triggered via...
asked by 16.04.2015 / 14:32
2
answers

In Java would I have as a variable to receive a function as in JavaScript?

Example: var x = function (a, b) { return a * b }; Would you like it? Or is it a JavaScript feature?     
asked by 21.08.2018 / 17:46
1
answer

How to insert 2 inputs in the same TD with doubleclick?

I would like to insert 2 inputs into a td, today my code works with only one input, and even saves the information in the database, but I need to include one more input to enter a password to authorize the update. Today it looks like this:   ...
asked by 14.06.2018 / 13:53
1
answer

Is there a secure way to check the loading of frames in an HTML page?

Some time ago I built a tool with HTML and Javascript to help debug a family of web applications. Basically, the tool consists of a static HTML page and a collection of scripts that load a given system into an iframe and then allow you to ins...
asked by 20.12.2013 / 15:35
1
answer

Div appear in the bottom (Superscrollorama)

I have a problem with Scrollorama. I would like the div to start appearing already in the bottom, but it is only appearing when I am already in the middle of the site. The class: $(document).ready(function() { var controller = $.superscroll...
asked by 25.02.2014 / 00:52
1
answer

z-index of an element without defined position

Is it possible to know z-index of an element without a defined position using javascript? For example in this code: CSS #exemplo1 { z-index:4; } #exemplo2 { z-index:4; position: relative; } HTML <div id="exempl...
asked by 24.03.2014 / 21:58
1
answer

chrome.tabs.onUpdated.addListener with delay

I've made an extension for Google Chrome that is working. The goal is to change the color of the image pixels on all web pages. To do this on the pages loaded in the already opened tabs, use the following code (in the background.js file): f...
asked by 22.04.2014 / 20:07
1
answer

Identify a specific part of the screen

Is it possible for me to identify a specific part of the screen with jquery and javascript? For example when passing by height y does it perform for me a function? I imagine something like this: var minha_altura = $(window).height(); var altur...
asked by 03.12.2015 / 12:23
1
answer

Login / Authentication with AngularJs and PHP

Well, I'm doing WebApp where I have a login page before accessing the app and inside the app I have some areas with restrictions. WebApp is running all right, but I ended up getting stuck in the process of logging in and authenticating....
asked by 23.09.2015 / 04:18
1
answer

Daylight Saving Date Conversion

Currently on my system I use the following code, to convert the dates coming into ajax. new Date(parseInt(data.replace(/\/Date\((-?\d+)\)\//, '$1'))) Since the variable data is a string that comes in '/Date(1508551200000)/'...
asked by 21.03.2018 / 21:04