Questions tagged as 'javascript'

1
answer

Can I set the mouse position with JavaScript?

I need to create an extension for a friend application that runs on a Node.js server (if I'm not mistaken, I do not handle too much of that), I want to know if there is a way to set the mouse position with JavaScript or less "fool the applicatio...
asked by 06.02.2016 / 20:38
1
answer

data bind with Arrays - AngularJS

Well, I'm having a hard time figuring out the best way to resolve this: I have several skills and I need to save each skill with your score and skill id for each candidate. I have a ng-repeat that lists all the skills in the form of the ca...
asked by 08.02.2016 / 15:21
3
answers

Pass Cursor to the Next Field of the Form

I have a form with several inputs, combos and etc. How can I do that when the user selects an option in the combo the cursor already jumps to the next field of the form? Also make sure that when the user completes a field that has a certai...
asked by 05.02.2016 / 18:05
2
answers

Regex string javascript

I need a regular expression that removes all special characters, and spaces of a string if it is a letter with an accent remove only the accent. Would anyone help me?     
asked by 22.02.2016 / 02:34
3
answers

Disable tab that shows all results

I have problems with this code, because I want to register the case, however I want to remove the tab where everyone appears, either part of each selected! The first tab is to show all (I want to disable), I want it to start straight from tes...
asked by 15.11.2018 / 16:51
4
answers

Assign function dynamically

Example: <body> <div class="box"> <div class="close"></div> </div> <div class="box"> <div class="close"></div> </div> <div class="box"> &...
asked by 28.01.2016 / 12:50
1
answer

Div's appearing and running

I have the following structure of div's <div id="box"> <div id="1">1</div> <div id="2">2</div> <div id="3">3</div> </div> And the following css: #box { width: 1000px; height: 300px;...
asked by 26.02.2016 / 12:42
2
answers

Convert a date to javaScript

Good afternoon. How do I convert a date to javaScript, taking into account the entered date can be format day-month-year or year-day-month. I have the following code: data = toDate('2015-10-01'); function toDate(dateStr) { dateStr...
asked by 14.12.2015 / 16:43
1
answer

What is the best way to capture keyboard shortcuts?

I currently use the keypress approach to catch the Alt pressed and the key that the user wants, but using alt Pressed may cause compatibility issues in some browsers. For example, by opening the search window: $(document).on('keypress...
asked by 14.12.2015 / 19:15
2
answers

How to capture the status (and readyState) of XHR from IE6?

How? alert(new ActiveXObject("Microsoft.XMLHTTP").readyState); // undefined // 0 alert((new XMLHttpRequest).readyState); // 0 Edit : In my code, before I had modified the this to xhr in the scope of onread...
asked by 15.08.2016 / 16:54