Posts by Robson Silva • 897 points
67 posts
-
0
votes4
answers58
viewsA: Repeat loop on id
See if something like this helps. for(let i = 1; i <= 10; i++){ $('#tituloSlideInput'+i).on('change', function() { var value = $(this).val(); $('#slide_titulo1').text(value); }) //Ou…
javascriptanswered Robson Silva 897 -
0
votes1
answer120
viewsA: Doubt in lines
Thiago all good? So on your first question, your mehodo remove() from the Queue class, it returns the first element of the queue, and when you are using it, just call the method and don’t let your…
pythonanswered Robson Silva 897 -
0
votes1
answer43
viewsA: How to send a form without using a button
You can use Ajax to submit the form without reloading the page. $.ajax({ "type":"post", "url":"suaurlaqui", "data": "os dados no formato JSON", "success": function(data){ //Implementa alguma coisa…
-
2
votes3
answers337
viewsA: error calling a method passing a class as parameter c#
Anderson, yes the instance this way is right yes. However the values you will pass to the Incluusuario method will be those predetermined in the class. The ideal would be for the properties within…
c#answered Robson Silva 897 -
1
votes1
answer1470
viewsA: problems with Valueerror error: could not Convert string to float: in python
Dude you have to make sure there is only one number string to convert. Ex float('12.34') This way it works normally. If there is any letter together you need to remove the letters and leave only the…
python-3.xanswered Robson Silva 897 -
2
votes2
answers739
viewsA: return python function variable
@William, Dude from what I read in the comments, you need to get two different views to access the same data. You can try to store them in Ssion, such as: request.session['descricoes'] = [descrição,…
-
0
votes0
answers148
viewsQ: Exception has occurred: Variabledoesnotexist - Django
Hey, guys, I got a mistake I can’t figure out why. I am creating a simple web client registration app with Django, I am using vscode with text editor. When I start the application the error…
-
1
votes3
answers429
viewsA: How to use Form in Listview Django?
I took the example taken from the website How to use class-based views using form: from myapp.forms import ContactForm from django.views.generic.edit import FormView class ContactView(FormView):…
-
0
votes3
answers77
viewsA: *Python- why is my code giving me information I didn’t ask for?
You can also convert the user input to a font and check only one cadastro = str(input('Digite [C] se possuir cadastro \nDigite [D] se não possuir cadastro: ')).upper() There in the checks you see…
-
0
votes3
answers627
viewsA: pass list of one method to another in python
Dude you can create a class simply to make this transfer, using the shared class properties, see the example insira o código aqui class Tranfer: shared = [] #Essa proprieda sera compartilhada para…
-
0
votes1
answer769
viewsQ: You can return the id of the last data registered with Django Model Form
Guys, I have a question. I’m using Django and I wonder if you have how to return the id of the data registered with Modelform, example when you give a model.save() can recover the id of this guy who…
-
0
votes3
answers1019
viewsA: Return Notfound() Web Api c#
You can try the following: return NotFound("Sua mensagem aqui"); Browser output "File not found ..."
-
-1
votes1
answer75
viewsQ: Access to client directory
I have a curiosity, someone can tell me if there is any way to make my web application (in the case ASP .Net core) able to let the user choose a folder on his local machine and, my application have…
-
4
votes3
answers494
viewsQ: Installing ruby with rbenv
I have a question, I installed the ruby in Ubuntu, but it was installed without the rbenv, has any problem installing it now, or it will be necessary to remove it first?…
-
-6
votes3
answers156
viewsA: How to select users with the STATUS field =1 in the user table?
Good guy think to do this the best way is to use a loop with foreach, where it will bring you all the information searched in the database with select allowing you to manipulate the data in the best…
-
-4
votes5
answers7569
viewsA: How to delete COOKIES in PHP?
Easy, my dear. The command is unset($_COOKIE['nomeDoCookie']); Ready will help you with your problem. That and good luck!
-
1
votes2
answers1851
viewsA: PHP - Cookies, how to detect if you are created
Well you’re doing a validation if THERE IS NO your Cookie, therefore, your function will be executed only if the cookie is not created, remembering that "!" in the validation makes the inverse of…