Questions tagged as 'javascript'

1
answer

Detect the shake of the phone in JavaScript

Hello, I have a question, I have a small mobile Internet provider and I create a game in html and javascript that the user shaking the phone can receive letters that later can be exchanged over the Internet. I already know how to capture the mov...
asked by 05.09.2018 / 21:13
0
answers

xml opening in div does not receive xsl

I have the HTML files, ajax.js and intrucao.js as follows. When you click on agar.xml , the style sheet agar.xsl is not loaded. The addendum is that the load is done in div . What's in the code that should...
asked by 05.09.2018 / 21:23
0
answers

Keep code sequence after refresh

I would like to know how to keep my script after updating the page, since my javascript as soon as it is loaded acts as if it were the first time. The idea is to check a condition (Hp), refresh the page and click a button. Something similar to w...
asked by 02.09.2018 / 22:06
0
answers

Insert in loop without repeating data NodeJS + mysql?

I need to enter the DESCRIPTION field in a CATEGORY table; I have my data in JSON format (already on the server); My loop runs the sequence of steps: Checks whether the "category" field exists in the JSON object Make SELECT to see i...
asked by 02.09.2018 / 08:23
1
answer

chrome.tabs.executeScript does not work in background

I would like, when I clicked the extension button, I wrote in the console the title of the page. My current code is this:    background.js chrome.browserAction.onClicked.addListener(function() { chrome.tabs.executeScript(null...
asked by 02.09.2018 / 10:00
0
answers

Add QRCode as PDF

I'm generating a PDF with responses from a form using jspdf , the PDF generates correctly, however I've been adding a QRCode to be used how to control and validate them, however I can not find anything about how to do this addition, does anyone...
asked by 28.08.2018 / 19:43
0
answers

Execute GeneXus event via javascript

I have a need to execute a file written inside a WebPanel in GeneXus being executed by a javascript function written inside a file external to GeneXus. I'm using GeneXus 15, does anyone have any idea how to do this?     
asked by 28.08.2018 / 21:09
1
answer

Paste HTML element via Javascript using getElementsByClassName

What is the problem with this javascript code? The function always returns error. <!-- IMAGEM --> <img class="coverPhotoImg photo img" src="ABC.JPG" alt="Foto 1"> <!-- IDENTIFICAÇÃO ---> <span class="hidden_elem enableFrie...
asked by 26.07.2015 / 00:37
0
answers

Importing data with DomParser - html shows tags

Good afternoon. I'm doing a function in which with the CTRL C + CTRL V of a table, on my site, the table is imported. It's working, however, div and style html tags show up in some columns ... How can I hide these tags? The following is the f...
asked by 28.08.2018 / 21:04
0
answers

Input file with pre-selected file

I have the code below that at the click of a button, open the windows explorer window to select a file and then send a POST to a .php file. The file I want to send to POST, is already on the server and I have the source path. How do I make th...
asked by 30.08.2018 / 03:25