Questions tagged as 'javascript'

1
answer

Error in class constructor in React

I get the following error when I try to use the component this way. client?cd17:119 ./src/App/Components/AddNote.js Module build failed: SyntaxError: super() outside of class constructor (9:4) 7 | const FormText = React.createClass(...
asked by 30.03.2017 / 15:17
1
answer

How do I return the value of a query in nodejs

Well, I have the following code: pool.query('SELECT * FROM 'info' WHERE 'id' = 1', function(err, row) { var jogo = row[0].jogo; console.log(jogo); }); The problem is, if I take the var game from the function, it no long...
asked by 26.03.2017 / 04:26
1
answer

Interaction between pages

I have a question and would like some tips to update a page through another page. Example: On page "A" I have a list of products and a link to page "B"; The "B" page will open in a new tab and have a form to include new products. I woul...
asked by 31.03.2017 / 09:35
1
answer

How to customize "Confirmation window"?

Follow the code: @using (Ajax.BeginForm("Action", "Controller", new AjaxOptions { HttpMethod = "POST", OnSuccess = "OnSuccess", Confirm= "Tem certeza ?" }, new { @class = "form-horizontal", role = "form" })) { } How can I customize a...
asked by 04.04.2017 / 00:41
1
answer

Compare if there is a point on a given route

I have a page that calculates the distance between Point A and Point B , but I need to compute tolls on this route. I think of having a bank with the toll (lat and lng) coordinates and check if it exists on the route, but I do not know how...
asked by 29.03.2017 / 16:46
1
answer

How to clean / reset bootstrap fileinput after selecting new image?

I'm trying to clear / reset after selecting new image. After selecting image, clean Initial Preview Follow the code: HTML: <input id="input-pd" name="input-pd[]" type="file" multiple class="file-loading"> JS: $("...
asked by 22.02.2017 / 01:56
3
answers

upload content after an element

I'm trying to make a function to load a content with .load() of jQuery , .load() receives a parameter param that would be the address of the file. And I would like this html to be loaded after a specific element...
asked by 21.02.2017 / 03:45
1
answer

Popover Boostrap 3 - Does not appear

I have the following HTML code: <button class="thumb-hearth pop" data-toggle="popover" title="Likes" data-placement="top" data-trigger="focus" data-content="Teste"> <i class="glyphicon glyphicon-heart"></i> </button...
asked by 15.02.2017 / 03:54
2
answers

Get position of element based on another

You have two 3 divs: <div style="margin-top: 30px;width:50px;height:50px;"></div> <div class="boxPrincipal"> <div class="elementoSecundario" style="width:100px;height:80px;margin-top:10px;margin-left: 20px;">...
asked by 18.02.2017 / 22:53
1
answer

Change order of objects in the array by dragging rows from angular table JS

I have a table and using jquery ( sortable ), I would like that when I drag the line by modifying the html of the table, the array Example:    CAMPO1       CAMPO2 /// DRAG THAT DOWN       CAMPO3...
asked by 25.01.2017 / 00:08