Posts by jefissu • 582 points
33 posts
-
0
votes2
answers47
viewsA: Form creation error with Entity framework
switch to Html.Beginform("Create.cshtml", "Areaclientes"
-
0
votes1
answer28
viewsA: make an equal ID group
You should probably make an auxiliary table containing the temid and the group with its name, for example: 55 = group 1 and 51 = group 2, even putting more details about this group. Search the…
-
1
votes1
answer62
viewsA: How to avoid performance problems with tables that contain a lot of data?
Is the data modeling of the table well done? Because depending on the table construction you can replace the type as "TIPOABCDE" to 1, minimizing the amount of bytes per record and consequently…
-
1
votes1
answer53
viewsA: Add Selected to option after equality check
Untested, but it might look something like this <div class="form-group has-feedback {{ $errors->has('nivel') ? 'has-error' : '' }}"> <label for="nivel" class="col-sm-2…
-
0
votes2
answers764
viewsA: Graphic in Bars Char.js
Change: labels: [<?print $valor[1];?>, <?print $valor[2];?>,<?print $valor[3];?>, <?print $valor[4];?>, <?print $valor[5];?>, <?print $valor[6];?>, <?print…
-
0
votes2
answers3281
viewsA: How to get json data from php with javascript
var conteudoJSON; $.ajax({ type: 'GET', url: "http://127.0.0.1/ecoLicenseLayout/send-data.php", dataType: 'json', contentType: 'application/json', crossDomain: true, cache:false, success:…
-
0
votes3
answers390
viewsA: Select part of an image
Paint exactly the image I think is not possible, because it is an image . gif. There are some other options, but laborious... play each country as a separate image, without background, placing them…
javascriptanswered jefissu 582 -
1
votes2
answers265
viewsA: No update of a Collection PL/SQL
In some cases, depending on the Oracle configuration, you need to include the commit; After inserting, deleting or updating records, otherwise it will not update the database.…
-
4
votes3
answers271
viewsA: How can I make "..." appear in a certain class after reaching a limit of carcter
Using a Div and limiting in ten characters, for example: <div id="teste">012345678901234567</div> We could do the following: <script type='text/javascript'> var texto =…
-
1
votes1
answer84
views -
0
votes1
answer423
viewsA: Object in oracle giving as invalid(Invalid)
To debug a code in oracle, both in package and in procedures, functions and etc, you need a program like PL/SQL or SQL Developer (which is free!!!!). In them you can debug and test any of them, with…
-
1
votes1
answer128
viewsA: Application stopping when there are many users accessing
There may be several factors and it is difficult to determine without knowing your environment. What I would recommend to do is the following: Try to check the performance of your application’s…
-
1
votes5
answers839
viewsA: How can I add a value to a Row in the comic without having to add variables?
It would basically look something like this. Note that you may need to consist of the single fields or primary keys of the table and name the fields in the same order as the table creation. For…
-
0
votes3
answers189
viewsA: Internationalize the content of Meta Tags
It depends on your target audience. If the page is highly likely to be accessed in several languages, it is best not to specify the language of the page. Probably, because the search engine will…
-
1
votes4
answers2880
viewsA: Is it possible to reference a column that is not a primary key in another table?
Yes, but if your id_2 is null or obtains items in duplicity, you can have an N-N relationship, if it does not have the UNIQUE attribute, which prevents its duplicity and null insertion, you end up…
-
0
votes2
answers190
viewsA: Javascript validation is not working
Always when referring in javascript directly to fields, put the attribute name ="name", because putting only the attribute id it will not locate the object directly, as using…
-
1
votes4
answers739
viewsA: Is it possible to put an "IF" condition on media to Internet joins and other Where conditions in SQL Server?
Simplest way: and (bol_portfolio = @eh_port or @eh_port = 2) In this case you wouldn’t even need to validate it, because when the parameter is worth two the comparison with the bol_portfolio will be…
-
-1
votes5
answers1041
viewsA: localhost does not have access to the requested page
Simply change the url address to relative path instead of static. Example: var url = "/v1/cnpj/MEUCNPJ"; (if you are in the same field.) If you are on a different domain, the target site may be…
-
1
votes2
answers1455
viewsA: How to create this rule in mysql
1st Question. Yes, there may be a mere improvement in performance, but if the amount of simultaneous transactions is small, it won’t make that much difference. The main advantage of using an Enum is…
-
4
votes1
answer556
viewsA: Return JSON with date and time
use $sql ="SELECT CRED_NUMERO, TO_CHAR(MOV_DATAHORA,'HH24:MI:SS') MOV_DATAHORA FROM APOIO.LOG_CREDENCIAL_APOIO A WHERE A.CRED_NUMERO = 10734568 AND TRUNC(MOV_DATAHORA) = TRUNC(SYSDATE)" If you want…
-
5
votes2
answers476
viewsA: Create "Slide" from image
Example (use only Javascript and ignore formatting, sizes, etc): <div class="imagem-big_produto"> <img id="imagemgrande" style='width:400;height:300'> </div> <ul> <li…
-
0
votes2
answers831
viewsA: Json with an empty list C#
Test if the list with the items is not empty via a conditional (if, for example), and only call the reading class if this list is not empty, so you also save application resources. An empty Json…
-
2
votes1
answer327
viewsA: how to communicate with desktop applications?
Basically, if you need the manager to access the collaborators' data in a secure way, it is essential that there is some server-based authentication method (Web, FTP to pull or send the data, etc).…
-
1
votes2
answers497
viewsA: How to manipulate Event Listeners order of a DOM element
Question 1. Events will be triggered in the order of a statement. Declared events first execute first, because this way the second event click overrides the first, concatenating the methods as if…
-
2
votes1
answer1300
viewsA: Update an Asp section variable without refreshing the page
Instead of using a Submit button, create a common button and call a function containing ajax to call this page, a Submit button will always reload it <input type="button" onclick="calcula_cep()"…
-
1
votes2
answers804
viewsA: Problem with timeout in classic Asp
Create a Session variable in the global.asa and test it every time a page is reloaded, if this button is a page redirect. ex: <SCRIPT LANGUAGE=VBScript RUNAT=Server> Option Explicit Sub…
-
0
votes4
answers419
viewsA: Function Javascript does not work
Try to change: <a id="A3" class="linkFormularios" href="javascript:MostrarEsconderDiv('divSecao6')">Para Sistema Integrado de Gestão, clique aqui</a> For <span id="A3"…
javascriptanswered jefissu 582 -
1
votes2
answers694
viewsA: How to create a drawing in open book format and with content inside?
Do a div with the css background-image: then set the padding so that the text does not exceed the page limits, if the book’s "edge" has about 10 pixels, use a 20 of padding. Then place the contents…
-
1
votes1
answer667
viewsA: Anti SQL Injection (I tried everything but Havij still picks up)
If you want to try to avoid even more an Injection sql, try using a "stored Procedure", so mysql will accept any sql code as a variable, regardless of what is typed. My specialty is oracle, and at…
-
1
votes1
answer660
viewsA: Export table content to an Excel file
Try: public function testExcel(){ $nome_arquivo = "Listagem de Investidores"; header("Content-type: text/txt"); header("Content-Disposition: attachment; filename=$nome_arquivo.xls"); header("Pragma:…
-
1
votes1
answer493
viewsA: Javascript check if the Windows user is registered in MS Access Database
Have you tried: adoRS.Open("Select * From CadastroUser WHERE UsuarioRelatorioGerencial = " + strUserName, adoConn, 1, 3, 1); ? Similarly on Document.write: document.write("Usuário: " + strUserName);…
-
0
votes1
answer54
viewsA: Uncaught Typeerror: Cannot call method "playFlash" of Undefined
"Uncaught Typeerror: Cannot call method "playFlash" of Undefined" It means that you tried to call a method in a control that does not exist or cannot be located. There must be some incompatibility…
-
2
votes1
answer1469
viewsA: As popular select with 2 json parameters
To send to javascript using more than one value use: data: {regiao: $("#regiao").val(), profissional: $("#profissional").val()} Javascript will then send the two values at the same time to the…