Questions tagged as 'javascript'

1
answer

create a global function in vue

Good afternoon, I'm a beginner in both javascript and vue, and I'm having some difficulty creating a global function in vue. Could someone give me an example? Grate     
asked by 04.11.2016 / 20:46
1
answer

AngularJS - modal inserts template with radiobutton options

I have a button that opens a modal, where words separated by commas will be typed which will become the radiobutton options on the main page. When saving the modal you must insert an HTML template with this embedded data. Follows plunker  ...
asked by 04.11.2016 / 11:47
1
answer

How to remove or clear value from the input file?

Hi stackoverflow folks. Is it possible to remove or clear value from the input file? I also saw another example of resetting or removing all input file files using: document.getElementById("seu_id_do_input").value = ""; What is the be...
asked by 29.11.2016 / 04:48
1
answer

Erase options within optgroup

I have select with two optgroup . I want in JS to delete all% with% that are only in options . <select id = "testSelect" name="testSelect"> <optgroup label="opt1"> <option value="3">Apples</opti...
asked by 25.11.2016 / 12:22
1
answer

User profiles for REST API access using NodeJS + ORM SequelizeJS

Is there a way, or some nice package, to work with user profiles for access to certain REST API endpoints as per their permission? I'm using NodeJS + Express + SequelizeJS as ORM.     
asked by 05.12.2016 / 16:49
1
answer

Modify the function return for synchronous

Hello, I need to modify this function to use callback as a function return and not as a new function call via callback. I need this in this way because I'm creating a generic method for deletion acknowledgments on the existing system. If I ca...
asked by 14.12.2016 / 12:43
2
answers

Cancel the click event of tag a

I need to create a JavaScript function that is called at the click of a button and should cancel the click of a <a> tag. I tried this way: $("#botao").click(function(){ $("a").unbind('click') }) However, when you click on...
asked by 13.12.2016 / 22:01
1
answer

Riding .eslintrc, how to write?

I got a project with this eslint: { "extends": [ "keystone" ], "rules": { "no-unused-vars": [2, {"vars": "all", "args": "after-used"}], }, } Another one with this eslint here { "parser": "babel-eslint", "plugins": [...
asked by 21.11.2016 / 19:54
1
answer

Fill a select with callback $ getJson Asp.Net / JQuery [duplicate]

What I need to do is the following, I have a select with States, when the person changes that state I need to fill another select with the Cities. This is the state select:      <div class="input-group">...
asked by 08.12.2016 / 12:09
1
answer

Dynamic button creation

Hello. I am tapping to create a button for each result that $.each generates. $.each (data, function(index, orc){ $html += '<div>'; $html += '<button type="button" class="list-group-item" id="btn_orc'+orc...
asked by 22.11.2016 / 15:02