Questions tagged as 'javascript'

1
answer

Add Chip from materialize if user forgets to click enter

I have a registration screen that has a tags field. As it fills in and press enter, it looks like this: Let'ssayhesignedupbutforgottoenterenterintoatag,forexample: This tag will be lost, when it clicks edit this register will only have...
asked by 12.12.2018 / 14:01
1
answer

Try-catch in loop causing error

I have the following code, which tries to click a button after 60 seconds, and if it has not loaded, try again after 60 seconds. while(true) { var timeout = setTimeout(function() { try{ document.querySelector...
asked by 10.12.2018 / 15:03
3
answers

Sort recently added records dynamically

I make this query in the database to list all the names of the registers ... $('.ordenar').click(function(){ db.transaction(function(tx){ tx.executeSql('SELECT nome FROM cartoes', [], function(tx...
asked by 14.12.2018 / 18:06
1
answer

Generate dynamic id in html and get with JQuery

I have a table in HTML that receives the values coming from the database. Each line of the table, when clicking on the icon I need to pick up the values of this line and when opening the modal show this information in modal. My table: WhenIc...
asked by 12.12.2018 / 16:45
2
answers

How to redirect the page only after confirmation?

The user will click on a link and a confirmation message like "Do you really want to access this page?" appears. If it confirms it, it is redirected, if it deny nothing happens. How can I do this? $(document).ready(function() { $("...
asked by 01.03.2016 / 16:29
3
answers

Refresh the page when closing popup

How can I refresh a page after closing a popup? After the user opens the popup, I give a series of options that change the page where the user opened the popup and need that updated page after the user closes the popup. How can I do it?     
asked by 24.02.2016 / 01:19
1
answer

Save to locationStorage position to maintain when reloading page

When the user clicks on a particular button, the scroll position of an element changes. I would like this action to be stored in LocalStorage, but I do not know how to do it ... can you help me? Here's my script: $('.btn.parteum').click(fun...
asked by 06.12.2018 / 06:07
3
answers

how to perform calculations between 4 input, when loading page or change value

I have 4 input fields, being: Cost that already comes with a value in value The freight field, which when changed the value must be added to the cost and displayed in total The discount field, which, when changing the value, must subtrac...
asked by 24.02.2016 / 14:28
3
answers

Exit button with message

I'm trying to use bootstrap 3 along with VRaptor 3 and I'm having a problem with the menu. It happens that I have the "exit" option in this menu and I'm lost. I need the user to click on "exit", open a window asking if this i...
asked by 02.03.2016 / 23:07
4
answers

Error of: Uncaught TypeError: undefined is not a function

<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script src="//code.jquery.com/ui/1.10.4/jquery-ui.js"></scri...
asked by 05.05.2014 / 15:56