Questions tagged as 'javascript'

3
answers

How to define the value of a variable from a function?

I want something like, a function that will be passed a variable as a parameter and a value that will be applied to it, how can I do that? For the code below did not work: function setVariableValue(variable, value) { variable = value;...
asked by 18.06.2017 / 03:08
2
answers

Change cents of values

I'd like to be able to change the cents of li by the input of MudarCentavos . But by setting Id in li and treating Id by Id , because this list will be dynamic, then more than 3 values may come. Note:...
asked by 05.12.2017 / 12:18
2
answers

Using async="" will result in a synchronous or asynchronous load?

I'm using this function to load my scripts into a single line: function loadJS () { for (var i = 1, max = arguments.length; i < max; i++) { var file = document.createElement("script"); file.async = arguments[0];...
asked by 24.08.2017 / 20:07
2
answers

Get the value of the input radio with javascript

I'm trying to quiz you and would like to get the value of the input radio, which are the answer options. Any tips on how I can do this using javascript only? <form> <h3>1. Which tag should used to represent the "header" of a...
asked by 12.07.2017 / 21:10
2
answers

Toggle text and class of a link when clicked - jQuery

I'm trying to delegate a click event to a link inside a table, as this jsFiddle sample shows : The result you can see is: By clicking the " Enable " link, the click event assigned to the .activate class is triggered,...
asked by 15.10.2015 / 06:04
2
answers

Is it possible to restrict access to variable information with AngularJs?

Hello, I'm new to development and would like to know if there is any way to hide variable information in AngularJs, I'm using a MongoLab API and I did not want to leave my apiKey visible to anyone who debug the code in the browser, I'm runnin...
asked by 14.10.2015 / 05:44
3
answers

Error when trying to install modules in NodeJS: "Error: Can not find Python executable" python ", you can set the PYT HON env variable."

When I try to install the modules I need, it returns several errors at the time of installation (in this case I tried to install socket.io): MicrosoftWindows[versão6.3.9600](c)2013MicrosoftCorporation.Todososdireitosreservados.C:\Users\IvanS...
asked by 23.12.2015 / 11:32
3
answers

How to access the $ scope variable?

I would like to know how I can access the contents of the scope variable in AngularJS? Theoretically I did everything "correct", ie declaring the variable in controller and assigning values in it: var app = angular.module('va...
asked by 18.08.2015 / 17:29
2
answers

Show or hide a pregnancy option, whenever the user selects in the register that is female

How do I display or hide an option on a patient record page to tell whether the patient is pregnant or not. The option would only appear if the user checked the Female option. The image below shows a preview of the registration page. The part...
asked by 30.09.2015 / 20:40
2
answers

How to find out height and width of window WITHOUT JQUERY? [duplicate]

I've been wondering this for some time. I tried somehow to figure out the size of window (the browser window), but I could not do that. With jQuery I already know what it's simply doing: $(window).height() But, in case I do not...
asked by 13.11.2015 / 19:52