Questions tagged as 'javascript'

1
answer

Destroy React component (Unmounting Component)

I would like to know how I can destroy a component with React when I click a button. I found a way out, but in my design it is very "gambiarrosa". I have a state called show and when I click close I modify the value of this.state.show...
asked by 16.11.2016 / 19:59
1
answer

Bootstrap - Jquery Error

I'm trying to make some javascript confections in my project that also uses bootstrap and I need to see the log. However, even using the code provided on the bootstrap site itself, I'm getting the following message in the log and the rest of the...
asked by 19.11.2016 / 22:43
3
answers

Pick up the week correctly

Colleagues, How would I get the week in a given month? For example, if the user next time to access the system (today is 11/18/16), it would appear:    Current week: 11/20/2016 to 11/27/2016 I accept suggestions in PHP, Jquery or Javas...
asked by 18.11.2016 / 14:44
2
answers

Calculate duplicate input value

I have a div with 3 inputs (value, aliquot, totalvalue) they are inside a div clone in jquery ... I can do the calculation through id like in the code below but as it is cloned in jquery it only works in div main because it can not have duplicate...
asked by 11.11.2016 / 00:25
1
answer

Function for delay / delay opening of a div

I have a floating div with a 'close' button, which makes the hidden / visible. <script language="JavaScript"> function controlaLayer(layerover) { if( document.getElementById(layerover).style.visibility == "hidden" ) { document.ge...
asked by 12.08.2016 / 23:00
1
answer

Null value is going to ajax error function - ASP.NET MVC

I am developing a CEP query page where the information is sent and returned in ajax: $.ajax({ url: "@Url.Action("PesquisarCEP", "CEP")" + "?cep" + retirarMascara($("#dsCEP").val()), type: "GET", success: function (retor...
asked by 19.08.2016 / 17:26
1
answer

How do I create a fullscrenn button for my video player?

<!doctype html> <html> <head> <title>Tag video</title> <meta charset="utf-8" /> <script language="Javascript"> window.onload = function(){ var b1 = document...
asked by 18.09.2016 / 22:39
1
answer

ionic record audio not back to view

I made an app, to record audio, it opens the native recorder, but does not return the audio to view. .controller('MyCtrl', function ($scope, $cordovaCapture) { $scope.captureAudio = function () { var captureSuccess = function (mediaFiles)...
asked by 14.09.2016 / 20:12
1
answer

Why do I have to use FormData to send files via Ajax?

I created an HTML page with a form, and in it a imput file and a hidden field, all of them with the name attribute. <form id="meuForm" action="..." method="POST"> <input type="hidden" name="itemId" value="1" /> &...
asked by 06.09.2016 / 22:08
1
answer

How to select a select option with javascript / jquery

I have two selects , one for employee and one for function, and it is necessary that when an employee is selected the function of that employee is already selected automatically. This alert works perfectly, but I need instead to...
asked by 08.08.2016 / 21:45