Posts by cavalsilva • 315 points
13 posts
-
0
votes3
answers3586
viewsA: It is possible to assign the value of a Javascript variable to an ASP
If you are doing javascript for you to call the variable in ASP you should do as follows: 'Bloco ASP Dim ASP ASP = 1 'Bloco Javascript <script> var JS; JS = 2; '<%=ASP%>' = JS;…
-
0
votes1
answer498
viewsA: Jqgrid Configure Sort
I found two ways to do this, I made the following logic first form if (index === "NUM_PEDIDO"){ /* posso setar valores dos campos no index para a ordeção*/ $("#grid1").setGridParam({sortname: index,…
-
0
votes1
answer498
viewsQ: Jqgrid Configure Sort
I wonder if by Jqgrid, I can do a sort configured, for example: I have the following columns: Request, Sequence, Procedure, Tooth, Date, Guide. So when you click on the Request column, I want you to…
-
10
votes7
answers5450
viewsA: How to write easy-to-maintain, readable code?
Here are some notes that I explained of some research and daily living: Reduce complexity: Create a routine and automatically you’re hiding part of the code in one place. This makes your code less…
-
1
votes2
answers707
viewsA: Query Mysql returns no error or result
Try this below: SELECT a.data_proposta, a.source_code, Sum(b.custo) AS custo, Count(a.data_proposta) AS propostas, Sum(IF(precog_fk <> 9, 1, 0)) AS validas FROM propostas a, midias b…
-
2
votes1
answer501
viewsQ: Jqgrid: Frozen column
I wonder if anyone ever put up a column frozen: true with the cellEdit: true, I checked in the doc that there is a restriction of the same. Does anyone know somehow to accomplish the Frozen being…
-
0
votes1
answer715
viewsA: Jqgrid: Assign value to Postdata
I performed the adjustment as follows, I put the values in an array and at the time of XML generation I created a dynamic variable keeping the corresponding XML values. Thank you.
-
0
votes1
answer204
viewsA: Jqgrid Error saving data field via Datepicker
Well people, to perform the adjustment I changed the grid to cell editing and applied the cell settings to the function aftereditcell(), because when I was generating XML in the previous way the…
-
1
votes4
answers28928
viewsA: Calculator in php
1º- We will use a FORM (HTML) <!-- Método: $_POST | Action em branco porque executaremos na própria página --> <form method="post" action=""> <!-- Input que receberá o primeiro valor…
phpanswered cavalsilva 315 -
2
votes3
answers16195
viewsA: How to replace src of an img tag?
You can insert the images on your page into hiddens fields and do the above validation in JS: var // Armazena o nó da imagem. image = document.getElementById('id-da-imagem'), // Recupera um objeto…
-
0
votes1
answer715
viewsQ: Jqgrid: Assign value to Postdata
I’m having trouble setting values in postData of a Jqgrid, below are the creation of the grid, the received JSON and the function that changes the value along with the reloadGrid. Creation of the…
-
2
votes2
answers1613
viewsQ: Simulate a keyboard key when losing focus
I would like to know how to do a simulation of a keyboard key (in my case the enter key), but in the case in Jquery. But it has to simulate when leaving an input for example. Follows link with…
jqueryasked cavalsilva 315 -
1
votes1
answer204
viewsQ: Jqgrid Error saving data field via Datepicker
I have a problem that when saving a field via datepicker, the same instead of sending the value, sends the same via input, this case is only in cases where the enter button is not pressed.…