Questions tagged as 'javascript'

1
answer

CoffeeScript on Rails - select items from a table

Hello! I have the following code generated by Scaffold: <p id="notice"><%= notice %></p> <h1>Produtos</h1> <table class="table table-striped" id="tabelaProdutos"> <thead> <tr> <t...
asked by 26.05.2017 / 16:26
0
answers

function savefile (); exports default to downloads folder

Good morning, I would like a help, the function is exporting directly to download folder, I would like to be able to choose in which to save the file. I still can not see a solution to this functionality, thank you all who are willing to give me...
asked by 26.05.2017 / 14:15
0
answers

Requesting youtube videos in iframe with AJAX

I have noticed that my site got very slow after the new layout update. It turns out that analyzing through the chrome console, I see that it is google: googleads.g.doubleclick.net/pagead/id Failed to load resource: net::ERR_BLOCKED_BY_CLIE...
asked by 13.04.2017 / 13:28
0
answers

Error sending an image to discord

How could I send the image to the discord without having this error var Canvas = require('canvas') , Image = Canvas.Image var Discord = require('discord.js') , isla = new Discord.Client(); var server = require(__dirname + '/server.js');...
asked by 14.04.2017 / 01:56
0
answers

What differentiates an arrow function from a function, say "classica"? [duplicate]

I started a course of nodejs and the instructor said the following code: modules.exports.addNote = function(){} Would be replaced by: modules.exports.addNote = () => {} What would be the difference from one to another and why use...
asked by 17.05.2017 / 08:01
0
answers

Function ajax / js does not work [closed]

Below is my code, with the function and the field. When testing does not work, I do not know what's wrong. I did this to check if that period already exists in the bank. But I do not even know how to check if the php file is receiving the data o...
asked by 15.05.2017 / 22:30
0
answers

How not to affect the body with a JS function and get the value of only the required class?

index.html <body class="teste"> <h1 id="teste-zica">teste</h1> <h2>teste2</h2> <h3>teste3</h3> js.js addEventListener("mouseover", paradaDeSucesso); function paradaDeSucesso(event) { $(event.t...
asked by 03.04.2017 / 17:18
0
answers

Search words on the page and replace

Friends, I'd like to know if it's possible to create a method that scans a html page or just within a div by looking for a specific word and replacing it with another word. I'm trying to do this, because I'm using a plugin on my site, and the...
asked by 04.05.2017 / 17:58
1
answer

Ajax problem while consuming asmx

When trying to consume webservice asxm returns unfenined when trying to call the myData.id field, but the result of data.d returns the values of the webservice correctly. $.ajax({ type: "POST", url: "Service.asm...
asked by 09.04.2017 / 05:53
0
answers

Form Contact form7- There is no error message but the form is not submitted

Hello, I have a form using the wordpress plugin contact-form-7 with javascript code. Use hidden type fields and conditional fields. The filling of the fields works perfectly, however when I submit a submit no message appears and no error and the...
asked by 08.04.2017 / 17:18