Questions tagged as 'javascript'

0
answers

How to read an external .cnf file with JavaScript?

Could you give me an example code? I want to store the contents of the file in a variable of type string.     
asked by 07.06.2018 / 01:08
1
answer

Filter elements according to keystroke Jquery / Javascript

I have an input that the user types the filter you want, every key pressed I want to make a filter, if the typed text contains in the array I want # div_1 to be displayed otherwise I want # div_2 to be displayed, to help? $('#term').keyup(func...
asked by 06.06.2018 / 20:52
0
answers

Capture JavaScript loaded elements with HtmlUnit

Hello, I'm new to HtmlUnit, I'm trying to capture content from a div that loads later via JavaScript, however I'm facing some exceptions. My code: WebClient client = new WebClient(BrowserVersion.CHROME); HtmlPage pagina = client.getPage("ht...
asked by 07.06.2018 / 00:56
0
answers

Adding items from one grid to another

Can anyone help me? I have a problem as follows I'm using two grids The first one loads a list of items in which, when selecting a record, I add this selected record in the other grid Until then everything works But in the second grid I...
asked by 09.06.2018 / 18:38
2
answers

How to delete registration in a modal without it closing?

Good afternoon! I make a request via AJAX to open a modal. I have a dataset ready and I have the option to delete the record from the table. The problem is that whenever I delete a record the page gives refresh and modal date. Is there a way to...
asked by 09.06.2018 / 16:59
0
answers

How to make a mask for integer values in Reais?

I need that when the user type 1 appears on screen 1.00 or if he continues typing 15 15.00 appears and so it goes. I made a mask here but it gets add zeros whenever the user types and I just want to add it once. value.replace(/\D/g, '').replac...
asked by 21.06.2018 / 15:07
2
answers

How to update audio html without refreshing the entire page?

My web page should play a different audio every 1 minute without refreshing the entire page. The audio can stay in a div, but it needs to be updated every 1 minute, but the way it is, the browser always picks up the first audio played, and whene...
asked by 09.06.2018 / 14:27
1
answer

JavaScript onClick event does not work with data-modal - Asp.Net Core MVC

I have a DataTable in my Index in which lines are loaded using JavaScript. The Edit, Details, Delete, and History buttons are created together. All of them open in a modal window (the modal block is inside the Index) ... In the html of each butt...
asked by 09.06.2018 / 13:21
0
answers

Get the Id of a cell from a DataTable to do a CRUD in Asp.net Core

I have a DataTable that is loaded using JavaScript. The CRUD buttons are dynamically created. Before when I used ViewModel and Razor it looked like this: <a asp-action="Edit" asp-route-id="@item.Id" title="Edit" class="btn btn-warning">...
asked by 08.06.2018 / 23:53
1
answer

How to submit only the quantity of the products that were selected in the checkbox?

Show an item table and in this table I added a checkbox for each item and a field to pick up the quantities for each item. I'm able to send only the checked items in the checkbox (that's what I wanted) to PHP. But I can not do the same wit...
asked by 09.06.2018 / 03:40