Questions tagged as 'javascript'

1
answer

How do I do an "onload" on NODE.JS? (Discord.js)

I've been trying to make a code to generate an image on node.js using Canvas , but I'm facing the problem that the image is not loaded before using it. I tried using "onload" but that did not work (I never ran the code) Here is the "base"...
asked by 05.06.2017 / 20:42
0
answers

How to package electron application for windows

I currently create an application with electron, so I added external javascript scripts with scriptsrc to work on both electron and web page. But I'm having trouble generating the executable for windows with electron-packager The problem i...
asked by 05.06.2017 / 16:42
0
answers

Request on the same page with XMLHttpRequest

Good morning, I am using a script with 3 files. - > index.php (where the request is made) -> contact.php (it is the search and processing of the request) -> ajax.js (which reads and loads the contact.php file by XMLHttpRequest) Problem,...
asked by 26.06.2017 / 10:01
0
answers

How to put particlejs in a parallax banner with text in the center

I'd like to know how I can put the ParticleJS effect on a banner Parallax with a text in the div center. This way: Forexample,inthisbannerIwantedthatinthecenterofit,therewasatextandthattheimagewaswitheffectParalax.Itriedthisway:...
asked by 23.06.2017 / 15:15
2
answers

Delay does not work, can anyone help me?

I was programming a simple profile and I want to put a delay after the 'mouseenter' as soon as I move the mouse enters this 'mouseenter' and along with delay to show a box that is called '.user_widget' I am using: addClass and removeClass;...
asked by 23.06.2017 / 19:14
1
answer

Show text contained in javascript

I'm doing a question and answer game, but I'm having trouble with the code. The value exists, I have another code with the check and I can check the values of the checkbox. var perguntas = [ ["Qual a Capital do Brasil?", "Rio de Janeiro"...
asked by 26.06.2017 / 05:42
0
answers

Knockoutjs Div changes update tag to

I have this Div with knockoutjs when it changes I have to change my tag to hide or visible <div style="text-align:center; margin-top:5px; width:150px; float:left;">${Name()}</div> <a data-bind="visible:CheckedPlus" onclick="att...
asked by 29.06.2017 / 14:13
0
answers

What causes the invalid JSON error? [closed]

I have already done what was said in this post: json_encode - Invalid JSON and has not yet been resolved, so I'm asking. I'm using the jquery datatables server side. I did the server side activation with the default repository in the datata...
asked by 03.07.2017 / 17:00
2
answers

List of videos with link to download another video without refresh

Hello. I want to create a list of videos in which I will have a main video (bigger picture) and a sequenced list with others' thumbnail. However, in this thumbnail list you should have a link that will cause it to load into the main video fra...
asked by 10.06.2017 / 18:30
2
answers

PDF Upload by ajax

I have a form with several input text and 1 input file (where I send a PDF file). If I send by ajax it does not send the "FILE", I tried sending it without ajax, just by submit, and it worked. The question is even in the ajax submission. I did s...
asked by 07.06.2017 / 20:33