Questions tagged as 'javascript'

0
answers

customize validator.js when leaving the field

Good afternoon guys I'm working with validator.js (bootstrap library) to validate fields in a form, I have a custom email field: $('#userForm').validator({ custom: { validemail: function($el) { if(!valida_email($el.v...
asked by 11.08.2018 / 21:34
0
answers

Scroll down to Facebook DIV or Load conversations without scrolling down

I'm trying to scroll down the conversations of My Public Messenger's Messenger page down. To using the following code (Injecting through the Google Chrome Console) var divt = document.getElementsByClassName('_24tx'); var x = divt[0];...
asked by 11.08.2018 / 20:08
0
answers

Allow only trace number (hyphen), slash and dot in inpult [duplicate]

I'm trying to make a CPF & CNPJ with mask, but I want to allow in the field only number, dash (hyphen), bar & point; and I want to for mask it works so when I had 14 digit (CPF) it make the mask of the same and 18 (CNPJ). OBS: Ex...
asked by 12.08.2018 / 06:01
0
answers

How to get contents of a DIV and play in php variable? [duplicate]

I have this JavaScript code that takes the location of the person and sends pro id="demo". How do I get the contents of the div with id="demo" and play in a php variable? var x = document.getElementById("demo"); function getLocation() {...
asked by 11.08.2018 / 14:29
1
answer

Problems with using JsBarcode and PHP

I'm having trouble using JsBarcode and PHP. I dynamically generate the codes through a list. But using the code inside the barcode loop which is as follows: <img id="barcode"/> <script> var codigo = '<?php echo $...
asked by 02.08.2018 / 14:52
1
answer

Copy fields from one form and paste into another form from different sites

I'm developing a particular system, using PHP, JQUERY, MYSQL, and I need sort of automating a routine: I have a registration form on my web system and I need some google chrome tool or app that will allow me to copy all of these fields from m...
asked by 07.08.2018 / 20:05
0
answers

Clear clipboard with javascript

Good afternoon everyone! I need to clear the clipboard so that the user does not print screen of the system screens, does anyone know of a cross browser script?     
asked by 07.08.2018 / 22:02
0
answers

Access an attribute of a React component

I'm using the GoJS library in React through integration React GoJS , so I can create a diagram in a very simple way, as stated in the example: <GojsDiagram diagramId="myDiagramDiv" model={this.props.model} createDiagram={this.creat...
asked by 01.08.2018 / 19:51
0
answers

how do I make a slideshow with divs?

Currently my carrot has 3 divs, and I would like the divs to transition from 1 to 2 and 2 to 3 and 3 to 1 with a 2-second timer, how do I do that? my code looks like this: <div class="container"> <div class="wall wall-1"...
asked by 01.08.2018 / 20:49
1
answer

Doubt with function in javaScript

I'm trying to figure out what happens after the click of a submit button on one page, to do exactly the same thing on another. On the page I am looking at and the code is written this: <button onclick= function (ev) { ev = ev || window.even...
asked by 01.08.2018 / 20:18