Questions tagged as 'javascript'

1
answer

Prevent repeated divs from being displayed

I use the code below to display a div random of the destino class, but when I run the function, often the same div or div will be repeated. Is there a way to fix it? function destino() { var E =...
asked by 12.09.2017 / 05:09
1
answer

Import HTML Nodemailer

I am using nodemailer to send emails on my server node, however I did not like to store all HTML in a variable, I would like to know if it is possible to leave saved in a arquivo.html and just call the content of it to send...
asked by 11.09.2017 / 15:32
1
answer

Sending data to Controller via Ajax LARAVEl [closed]

I have a project in which I have to send the CPF of a patient to a method in the controller in order to search within this method and already return the search value to the view, but I am not able to send those values to the view. Update I...
asked by 10.09.2017 / 22:00
1
answer

How to generate an insert string from json [closed]

I'm new and javascript and I need to generate an insert string for sqlite with this string: { "InputFile" : "PER_02.inp", "RunTime" : 1492167103, "Reservoir" : "5", "Elevation" : 400.000000, "UpStreamId" : "172", "UpStreamP" : 95.000000, "PRU_l...
asked by 12.09.2017 / 04:56
1
answer

Callback from reCaptcha when user is wrong

Is there any google reCaptcha function that is activated when the user misses the options?     
asked by 25.07.2017 / 15:46
1
answer

How to trigger button's Onclick event with jquery

I need to push the button when clicked. I made it in jquery in generic form passing the parameter of certain button to execute the script for it. <button id="buttonprofissional" type="button" class="btn btn-warning" value="profissional">...
asked by 24.07.2017 / 16:05
1
answer

Save an image in camanjs

Good afternoon, I'm using the camanjs plugin and I'm not able to save the image to the server, I have the code like this: <img id="camanimage" src="image.jpg" style="height:200px;"> No javascript: Caman("#camanimage", function ()...
asked by 25.07.2017 / 13:44
1
answer

Multiple filters on a json object?

Hello. I have 10 filters for a single json object: var filtro1 = function(value, selecionado){ var data = JSON.parse(JSON.stringify(json.aPesquisa)); var result = data.filter(function(pesquisa){ ... }); return result...
asked by 24.07.2017 / 23:53
1
answer

"include" in javascript or something similar to reduce code size

I have a dashboard where when some value or information is updated, the other values are automatically recalculated without refresh. An example is that when adding an expense in the table, it needs to recalculate all expenses, update the DB,...
asked by 27.06.2017 / 23:37
1
answer

Jquery Mobile Error Can not read property 'concat' of undefined

When I try to call the Jquery Mobile library (Using CDN or the code itself downloaded from Jquery Mobile . I get the following error in the browser console (Chrome and Firefox):    Uncaught TypeError: Can not read property 'concat' of u...
asked by 28.06.2017 / 15:25