Posts by Leano Macel • 131 points
8 posts
-
0
votes3
answers616
viewsA: First leave selected select item
At the end of the code where you finish loading the list, take the first element from the list this.cursos = array[0]
-
1
votes2
answers1552
viewsA: Vue Router: prevent user from accessing login route if already logged in
On the '/login' route beforeCreate can be defined by calling a goback() method, see https://vuejs.org/v2/api/#beforeCreate beforeCreate () { if (isLogged()) { this.goBack() } }, methods: { goBack ()…
-
0
votes1
answer722
viewsA: Vue js and Axios does not identify JSON response from API
You must use it sponse.date. According to the Axios documentation, this is the response model: { // `data` is the response that was provided by the server data: {}, // `status` is the HTTP status…
-
2
votes1
answer57
viewsA: Can someone help me with the Pointers in function, in this code?
Taking a quick look, you created the function void deletar(int qtd_aluno, aluno *a) with two parameters and in function call deletar(a); used only one parameter. This is only possible if you…
-
1
votes1
answer97
viewsA: Would it be possible for me to connect to a java server using basic Socket using a Javascript client?
Yes, because sockets work with file descriptors (texts), standard concept in Unix BSD. In a socket you send a text and receive a text, but other types of data can be transferred, depends on your…
-
4
votes4
answers6318
viewsA: How to display combobox-related value in the textbox?
With visual studio this is done automatically with the help of ADO.NET. Just create a Datasource with the desired fields and tables, and using the "click and drag" you place the Table Combobox and…
-
1
votes4
answers1442
viewsA: Document.writeln() is in disuse javascript
The Document.writeln(line) command is not disused, it writes a line where the command has been specified, all xml can be overwritten if it is outside of html tags. Note the code below taken from the…
javascriptanswered Leano Macel 131 -
1
votes1
answer49
viewsA: Prevent duplication in the BD depending on the FOR loop
You can only perform a count of uploaded images, and when you are done check if all images have been uploaded, using a counter, exemplifying: Place a loaded image counter before the loop for…