Questions tagged as 'javascript'

1
answer

Call a href page by passing the input fields of the form

I have a page that has several inputs, when I click on the button I open a modal with the result and inside modal I have another button to be clicked but I need to get the form fields and move to the other page. > My detail button code looks l...
asked by 30.03.2016 / 18:12
1
answer

How to concatenate a string and an integer value in javascript?

Well, I have 15 similar lines in my code, and the only thing that changes is id of elements that end in an increasing integer and different from the others ... I tried to replace these lines using a loop , but every time I try to run...
asked by 13.01.2016 / 02:35
1
answer

Converts string to numeric in javascript

I'm trying to convert a string to a numeric, the question is that I have a mask in the string and the number is a large value so that the total value is not added correctly. I need that after adding the value, return the mask with. and, thus,...
asked by 15.01.2016 / 18:44
1
answer

How does data-binding work in AngularJS?

I looked for something that explains to me how the magic of data-binding happens but I did not find it. My question is how do view data for model propagate, how can it keep up with changes without setters and getters? I searched for someth...
asked by 05.01.2016 / 17:41
1
answer

Show Loading Image in the Middle of the Screen

I have a form and typing the zip code shows a loading gif while I load the street, the neighborhood and etc. The problem is that as the user goes down the form, the loading gif does not appear because it gets stuck at the top of the form givi...
asked by 12.01.2016 / 19:11
2
answers

Do an asynchronous function wait for another

I'm developing a JavaScript system with Node.JS and Redis, however, because of the asynchronous functions, the loop terminates before the functions, which causes the wrong response array or the timeout on the server. In the face of my problem, i...
asked by 11.01.2016 / 20:15
3
answers

Ajax works locally, but does not work on the server

I have an application in asp.net mvc 5 where the code below works locally (visual studio 2012), but does not work after posting to the server. controllerAction = "/Controller/Action/" controller = "/Controller/" $('#approve-btn').click(functi...
asked by 27.01.2016 / 19:09
3
answers

Execute two functions with onclick

I need to run two functions with onClick, but I'm not getting it, could anyone help me? I want to hide the parent div "introductionAds" and show the "showID" div function ocultar(ocultarID){ document.getElementById(ocultarID).style....
asked by 22.01.2016 / 11:01
1
answer

Regex does not work in chrome

I have the following script in which I use a jquery to validate a regular expression that filters the names of the files to upload: $(document).on('change', "input[type='file']", function() { var validaFile = $("input[type='file']").v...
asked by 02.12.2015 / 17:52
5
answers

How to get all the HREF and SRC values of a code

Talk to people, I need to get all the href and src values of the tags, link, a, img and script, for this I have developed the following code: <html>   <script> $(document).ready(function() { function execute...
asked by 07.12.2015 / 12:59