Posts by Ronaldo Ramos • 169 points
7 posts
-
0
votes2
answers997
viewsQ: filter list in Django admin Foreign key field
I have two questions, both related to the form generated automatically by the Django admin. If I create an administrative screen I know how to solve these problems, but working directly with the…
-
2
votes3
answers1239
viewsA: SELECT with 2 tables and same field in both
You just need to use Union All select * from imoveisvenda where imoveisvenda.dormitorio=3 union all select * from imoveislocacao where imoveislocacao.dormitorio = 3
-
2
votes1
answer374
viewsA: Return ajax error when have accent
To solve the charset problem use the function: mysqli_set_charset() This function is used to correctly set the types of characters used, in your case I would advise you to do so: $conecta =…
-
6
votes1
answer451
viewsA: In Python 2 is it more performative to use range or xrange?
As you raised, the function range(x, y) creates a list of x to y. The function xrange(x,y) generates each element individually, and this saves memory and time startup. Recalling that in the case of…
pythonanswered Ronaldo Ramos 169 -
0
votes2
answers409
viewsQ: dynamic value inheritance of a child input (unordered list)
Hello, I need some idea of how to create a dynamic heritage of parent input values for children and grandchildren. Once the user enters the value in an input automatically it needs to be changed in…
-
1
votes5
answers1294
viewsA: change the title of a Window confirm()
a very simple to use modal is the bootbox <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Minha Página</title> <!-- CSS dependencies -->…
-
2
votes5
answers1294
viewsA: change the title of a Window confirm()
You could use the notification.confirm() phonegap: navigator.notification.confirm(message, confirmCallback, [title], [buttonLabels]) More details on:…