Interesting questions
-
11
votes1
answer789
viewsDownload text from a textarea as a server-side language-free file
I need the user to click a button to download the text that is within of textarea as a JSON file, for example: User click on button lower -> Start downloading the file textarea.json An example…
-
0
votes1
answer34
viewsAdd class by selector only in the first tab of Tabs when loading page
I have here a tab navigation template that consists of adding a class ".active" in the tab when you click. So far everything is perfect. However, I need the first tab to always be active when…
-
0
votes1
answer92
viewsReturn onPostExecute() String
I tried using the @ramaral tip Original post but my code has build errors that I don’t know how to delete. 1-In the interface statement the error appears: Unexpected interface . 2-The…
-
0
votes1
answer237
viewsHow to add elements in Queue (Queue) continuously?
Below I have a code that he needs to do the following: Create a thread, then start it. When starting the thread, according to the time (random time) the program adds a value in the queue, after…
-
1
votes1
answer869
viewsPass an object to Modal
I have a Foreach in a table, I need as soon as the user clicks on a row, open a modal with the object data contained in that row. The Foreach: @foreach (PedidoModel pedido in @Model.Entidades) {…
-
4
votes3
answers1815
viewsHow to start a range from 1
I wish on the part of input("Put student’s note " + str(notes) + ":" ) the computer ask "Enter student’s grade 1: " and not starting from 0, how to do this with the range function? Code below.…
-
0
votes0
answers13
viewsModal does not open object added via prepend
I have this ajax function that keeps comparing the records of the pagina1.php with another pagina2.php, if in the pagina2.php has a new record it brings and adds in the table, until then everything…
javascriptasked 5 years, 10 months ago Éverton 11 -
0
votes1
answer66
viewsHow to return a variable from an attached form?
''' I want my code to return a value/string from that form: <form action="/dashboard/busca_inserir" method="POST" enctype="multipart/form-data"> <div> <label…
-
-1
votes1
answer44
viewsPick variables from the first 10 pages in descending order
We assume that in a folder there are 11 renamed files with numbers (1.php, 2.php... 11.php) and they all have variables with equal names but different values (1.php: var = "texto1"... 2.php: var =…
phpasked 7 years, 10 months ago João Victor 787 -
6
votes4
answers1904
viewsHow to control when localstorage data expires?
I’m storing some data on localstorage browser and would like to set an expiration date for that data, but I do not find a way to control when these data expire. These data have some control over…
-
3
votes2
answers650
viewsCreating custom Annotations in ASP.NET
I own a Controller in my project Asp.net (Web Service) I need to do a token check for each method request. One solution I found is to create a static method and place a call at each start of each…
-
-2
votes2
answers67
viewsHow do I value my input to appear in a div or <p> as number. But nothing appears. When it appears it is Nan
<div class="container"> <p id="p"></p> <input type="number" id="inputsaldo" value min="0" placeholder="" maxlength="10" required> <button…
javascriptasked 6 years, 8 months ago João Marcos 1 -
5
votes2
answers97
viewsWhat are the consequences of not working on data typing?
I want to create an application where the client can create a new form or table, in which he can choose the data type of the field, such as number, text, binary, etc. An "easy" solution would be to…
-
0
votes1
answer35
viewsReturn of incorrect bank values when filling a Jtable
I have a Registration Class, which is responsible for the View. I have this code: public void listarTabela(){ DefaultTableModel val = (DefaultTableModel) jTable3.getModel();…
javaasked 8 years, 10 months ago Pedro Anselmo 35 -
7
votes1
answer3337
viewsSend data to controller via Json
I am trying to send via Ajax some data from my form. In this form, I have fields inputs normal and a list of vendors I previously selected via checkbox. Follow screen: I am creating the JSON object…
-
0
votes1
answer42
viewsShorten address of a group of elements with jQuery
I got the following code: $("div.conteudo div.administrador form.administradorEdita") Which is a form I want to refer to a label his; var form = $("div.conteudo div.administrador…
jqueryasked 8 years, 2 months ago Carlos Rocha 1 -
1
votes2
answers1115
viewsCount visible and active inputs in my form
Well, I know that the Jquery Validation does something similar, because it only blocks a required field, if it is active, see example(In this case, if Voce accepts the "Please agree to our policy"…
-
4
votes1
answer137
viewsHow to make an appointment to get the dates according to the weekdays?
How to make a certain query in MYSQL by picking the dates according to the day of the week? For example: +-------+---------------------+ | id | created_at | +-------+---------------------+ | 49185 |…
mysqlasked 9 years, 1 month ago Wallace Maxters 102,340 -
11
votes2
answers6367
viewsOpen, edit and save a binary file in Python3
It is possible to open a binary file and read its bits in Python3, edit and save a new binary. If possible, such as?
-
0
votes3
answers379
viewsProblem with onkeyup input
I made a small Javascript function to make a dynamic search in the database without giving refresh and it’s working, but I think there’s a problem with onkeyup. When inserting text into field input…