Posts by Deividson Oliveira • 503 points
35 posts
-
-1
votes1
answer32
viewsQ: How to start a download automatically when the user enters a specific page
I have a MVC C#application, where after login (it will be the first time you access the platform) the system starts downloading some files (the files change according to the needs of the department,…
-
0
votes2
answers168
viewsQ: Delete/Destroy html table via javascript
When I needed to completely delete a table or any other html element I used jquery $.empty() in the parent element where the element was. Is there any native way in javascript that does this removal…
-
3
votes1
answer721
viewsQ: Get IP from the computer that is accessing application via Node.js
I have an application . Net where for each access is recorded log with IP of the access machine, time etc. No. Net I use Request.UserHostAddress in the login POST to pick up the IP of the machine…
node.jsasked Deividson Oliveira 503 -
-1
votes1
answer326
viewsQ: Site Vue.js in production does not load complementary files
I have a project in Vue.js. I ran the npm run build to generate the files that will go up to the production server. But when I open index.html the browser does not render anything and running the…
-
0
votes2
answers700
viewsA: Line break in CSV file causes error during import
I do not know if it is the most correct way but it was the one that answered me. (Obs. The answer is only to be able to finish the question). Using the library using Microsoft.VisualBasic.Fileio; I…
-
-1
votes2
answers700
viewsQ: Line break in CSV file causes error during import
The application needs to read a . csv file that is automatically generated by an external application (We have no control over this). The file . csv has 60 "columns" (after reading and separation of…
-
1
votes1
answer40
viewsA: slider effect does not work with jQuery
I changed a few points in your code, I hope it helps. var topo = $('body div#topo section.topo div'); //Adição do parametro 'e' $(topo).find('ul#menuTopo li a[href^="#"]').click(function (e) {…
jqueryanswered Deividson Oliveira 503 -
0
votes2
answers823
viewsQ: Sum of decimal values in Javascript
When making sums of decimal values in Javascript (in the example with two decimal places). Sometimes the sum generates a result with 'n' decimal places other times not. The question is: Why does…
javascriptasked Deividson Oliveira 503 -
0
votes1
answer168
viewsQ: Is there an equivalent to SQLSERVER’s @ROWCOUNT in Postgres?
I am migrating the Database of some applications, from Sqlserver to Postgres and several scripts use @@rowcount. There is a Postgres equivalent to @rowcount?
-
0
votes2
answers274
viewsQ: Codeigniter does not find Controller
My website is published on IIS servidor\c\inetpub\wwwroot\site There are other sites in the wwwroot folder each in your directory (site2, site3, site4... etc) In Routes.php the default controller is…
-
9
votes3
answers201
viewsA: Rounding up
The result of dividing two whole numbers will always be an integer (no .Net). So convert the values to decimal and use the Math.Ceiling you will have the value rounded up.…
-
0
votes1
answer43
viewsA: receive the quantity of a product and the value and ask if Qur type any more product if yes have to repeat the process and then show the total
For research purposes. Add a total variable that will receive the sum of all totals. rodando programa { funcao inicio() { cadeia nome real val, total, totalGeral inteiro quant caracter opcao = 'f'…
portugolanswered Deividson Oliveira 503 -
1
votes2
answers818
viewsA: Calculate interest or discounts + the amount of installments with Jquery or Javascript
In a very simple way to start development $(document).ready(function(){ //Pega valor do campo texto referenciado pelo id var total = $("#IdValorTotal").val(); //Retorna se o checkbox está…
-
1
votes4
answers65
viewsA: Beginner program error in C
The problem is in the logical identifier || in which case you should use the &&. In your logic you’re saying that wages can be greater than 0 or less than 2000, only 2001 is already greater…
canswered Deividson Oliveira 503 -
0
votes2
answers54
viewsA: Codeigniter, update value with "CURRENT_TIMESTAMP"
Have you tried: $this->db->set('ulogin', 'CURRENT_TIMESTAMP', FALSE); Or $this->db->set('ulogin', 'NOW()', FALSE);
-
1
votes1
answer158
viewsA: Function to generate fixed day-to-day launch
Changing your code a little bit the logic would look something like this. You have to improve the code but the logic is this. DateTime teste = new DateTme(); for (int i = 1; i <= parcelas; i++) {…
c#answered Deividson Oliveira 503 -
0
votes3
answers314
viewsA: How to stop fomulário sending with Javascript?
Adds return false; after that line event.stopPropagation();
-
0
votes3
answers360
viewsA: Return View using View Data ASP . NET MVC
Name of input tag must be equal to parameter in Controller. Here it is "Personal" <input type="number" value="3" id="IdPessoa" name="PessoaId"/> And in the Controller is "idPessoa".…
-
1
votes1
answer133
viewsA: Category and subcategory in PHP listing
Dude changed a little its query the only "problem" is that the CI does not work very well with UNION so I rode it and used the $this->db->query(). public function listar($tipo=null){ $query =…
-
0
votes5
answers258
viewsA: How to open more than one View in a controller?
The action returns only one view, what you can do is in this view call an ajax that opens the new view in another tab but... I do not know if it is the best to do.
-
1
votes1
answer139
viewsA: How to pass the value of a variable through the form_open codeigniter function?
You can pass the method directly: echo form_open('email/send'); Ci’s gonna tag it <form method="post" accept-charset="utf-8" action="http://example.com/index.php/email/send"> You can also pass…
-
1
votes2
answers320
viewsA: Two foreach in a select
I changed your foreach a little bit: foreach ($risco_ergonomico as $riscoErgonomico) { $descricao = $riscoErgonomico->riscoErgonomico_Nome; $selectd = ""; foreach ($risco_e as $re) { if($re ==…
-
1
votes2
answers242
viewsA: Codeigniter database information array
If you change your array to foreach ($codigosRecibo as $key => $codigoRecibo) And in bd->get() change to $result[$key] = $this->db->get();…
-
2
votes1
answer60
viewsQ: Authenticating user by AD returns server user instead of local user
I have a web application that validates the user logged in to the machine, loads their permissions and opens the screens you are allowed, without using login screen. Caught the user with…
-
1
votes1
answer27
viewsA: Date field with wrong value
Usually this happens when the value is null, either from the bank or when the Viewmodel. I usually set my dates as nullable. public DateTime? DataWhetever { get; set; }…
-
0
votes1
answer188
viewsQ: Site MVC C# displays the message "401 - Unauthorized: Access is denied due to invalid credentials." after logging into external access
I created the normal MVC C# site without any peculiarity. In the Default Controller the index was this way. [AllowAnonymous] public ActionResult Index() { return View(); } [HttpPost]…
-
0
votes3
answers947
viewsA: Insert PHP into Javascript
<script> function jsLoad( ) { $("#preload").hide(); continuar_produtos(); } function continuar_produtos() { <?php $nome = '';?> <?php //1. Dados de conex?o $host = "localhost"; $bd =…
-
0
votes2
answers64
viewsQ: Is there anything in MVC that is equivalent to the <Asp:Repeater> of Web Forms?
I am mounting a form where some fields may or may not repeat, example: Course 1: Course [input text] Institution [input text] Year of completion [input text] Course 2: Course [input text]…
-
0
votes1
answer40
viewsA: Show date list with moving arrows?
Have you tried using Bootstrap for that? Example in w3schools
-
0
votes2
answers667
viewsA: Page reload with cacheless Jquery (Chrome)
Is it the best solution? NO. But you can try to use for testing: window.location.href = window.location.href; In my opinion it is a kind of dirty way, but for testing in the browsers it works.…
-
0
votes2
answers365
viewsQ: Losing cookie (created in javascript) when switching pages
On the HOME page I record a "x" value in cookie. var dataAtual = new Date(); var expire = new Date(); expire.setDate(dataAtual.getDate() + 1); document.cookie = "NomeCookie=ValorCookie; expires=" +…
-
0
votes2
answers15349
viewsA: Factorial algorithm in Portugol Studio
texto t = "" para (fatorial = numero; fatorial >= 1; fatorial--) //Realiza o decremento { if(fatorial != 1){ //Verifica se diferente de 1 para não adicionar o "x" t = t + fatorial + "x" } else {…
-
1
votes2
answers1374
viewsA: Calling layouts within a modal
<div class="modal hide fade" id="mdModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> </div> <div…
-
3
votes1
answer146
viewsQ: Is it possible to add a Function to a json?
Let’s get to the problem. In datatable.js, to display the columns I define as follows: "aoColumns": [ { "mDataProp": "IdProcesso", "sTitle": "Numero" } ] If you need to perform some function: {…
-
0
votes2
answers1413
viewsA: jQuery searches in a table
I have this script that might suit your case. $('#tblSegundoNivel_linha1 tbody').find('tr').each(function (indexTr, valueTr) { $(this).find('td').each(function (indexTd, valueTd) { if (indexTd ===…
jqueryanswered Deividson Oliveira 503