Questions tagged as 'javascript'

1
answer

How to remove an item dynamically from an object?

I'm using a reducer state, which contains an object in this format: x = {10: {nome: 'lucas'}, 20:{nome: 'beraldo'}} <br/> And, I get an id via action. I would like to do something like array.filter , or delete o...
asked by 27.07.2018 / 00:46
1
answer

Start Jquery function when a div receives a class

I have a div class="modal-load" with a counter loader that will be shown when the user finishes a payment, but I need this counter to start only when < .active in it. For this, I created a function in JS that runs this load. I believe this fu...
asked by 02.08.2018 / 20:39
0
answers

attr with carousel

Hello, I'm trying to use the carousel dynamically, changing when the url is selected. But after clicking the main iframe it changes and displays the following message: "Maybe it has been moved or deleted"                       The bridge    ...
asked by 02.08.2018 / 20:15
1
answer

Embedded Form Mailchimp does not redirect to landing page

Here is the code for the Form I'm working on, the problem is the following, using it as is, is not redirecting to the e-book link I'd like, I tried putting > onClick = this.form.action = ' link ' this. form.submit (); < in the button, but...
asked by 02.08.2018 / 20:51
1
answer

Disable Textarea (with TinyMCE) when loading mysql data

To disable a textarea with tinyMCE I used the tinyMCE.get('id_textarea').getBody().setAttribute('contenteditable', false); Inside a Javascript script, with an onclick event of a button, and everything went well. The problem now is this:...
asked by 26.07.2018 / 03:03
1
answer

My jquery function stops working when I change route

I have a jquery function responsible for cropping a photo when a photo upload occurs: document.addEventListener('DOMContentLoaded', function() { function readImage() { if (this.files && this.files[0]) { var fil...
asked by 26.07.2018 / 13:22
1
answer

Copy Form before sending Post in Html

How do I get the text of this form before sending it via post to another page? <html> <div class="content-body"> <div class="row"> <div class="col-xs-12"> <div class="wid-vecto...
asked by 26.07.2018 / 05:20
0
answers

require NodeJS (NW.jS)

Then I would like to know the following, if I work with node js to create sites I can create example: a file CONEXAO.jS and then give the require of it in another file to use it, so far and right. More I'm developing in nw.js. And I try to...
asked by 26.07.2018 / 02:58
1
answer

Empty and Append return no value

I'm having the problem that my empty (). append (); does not return any php value in the div and I also can not insert anything inside it, even inside the html itself. It's as if it fades, but for a second I see that the content typed in HTML is...
asked by 25.07.2018 / 21:16
0
answers

slide arrow is not showing up

I have a problem, I got a code from a video lesson and a jquery too, I'm using the two, I put the codes exactly as they were in the video, but anyway my arrow does not appear, it's like an A in it, I put an image to improve the visualization, ho...
asked by 25.07.2018 / 22:07