Posts by Gleyson Silva • 429 points
57 posts
-
0
votes1
answer136
viewsQ: update nls_database_parameters Oracle
I need to change the parameters nls Oracle, placing the image characteristics below: I’ve tried a lot of tips, but you always say I have insufficient privileges. These are my settings: NLS_LANGUAGE…
-
0
votes0
answers329
viewsQ: Strange characters being inserted into the Oracle Insert
I have an oracle XE database, I want to import sql scripts to fill the tables, however, characters with accent and Ç for example get strange characters for example. In this example Index: Insert…
-
1
votes1
answer329
viewsA: Oracle - Error connecting with Adoconnection Delphi 10.1 (Berlin)
I solved the problem by installing the Delphi 10 (Seatle), it ran smoothly. As my needs was to migrate to a more current version to use some functions of Fastreport that in the example I saw was in…
-
1
votes1
answer329
viewsQ: Oracle - Error connecting with Adoconnection Delphi 10.1 (Berlin)
I have an app that works on Delphi XE2 using the database connection component Adoconnection. When I migrated to the Delphi 10.1 (Berlin), no error. Connection exists, but does not connect, and…
-
0
votes1
answer204
viewsA: Load Viewmodel and external template to the Knockout component
After seeing some examples of using require.js, I understood what I was doing wrong: The index.html, menu.html(template) files are correct, but in the menu.js (Viewmodel) I changed the first line to…
-
1
votes1
answer204
viewsQ: Load Viewmodel and external template to the Knockout component
I’m trying to load the template and Viewmodel to a knockout component using require.js, but so far unsuccessfully. index.html (view) <!doctype html> <head> <link…
-
2
votes1
answer105
viewsQ: Create table component with Knockout
I have the following code using Ajax to fetch the data in a Restful and loading the fields in an array Listusers knockout: $.ajax({ type: "GET", url: "http://192.168.15.4/api/usuarios", contentType:…
-
1
votes1
answer301
viewsQ: Turn Columns into rows with bootstrap
I have a table in HTML using Bootstrap: With the code in CSS below I get it to automatically hide fields the last 3 columns when the page is resized to a resolution of 600 (width): <style>…
-
2
votes2
answers2231
viewsQ: Hide table columns when resizing html page
I have an html table: When I resize the page to a smaller resolution I would like it to be only 2 columns and when I return for a larger resolution I will have the 5 columns. Bootstrap. Could be in…
-
0
votes1
answer230
viewsQ: Fill table column with Object Json (using Footable)
I’m testing a plugin to load a Json into a table, footable, I managed to make it load simple Json. But when I test a Json where one of the columns is a Json object I cannot see the fields of that…
-
2
votes1
answer804
viewsQ: Change color icon button javascript
I have the button: <button id="btnVoltar" style="margin-bottom:0;vertical-align:middle" type="button" class="btn-flat bg-red btn-circle-lg waves-effect" onclick="voltaparaConsulta()"> <i…
-
0
votes4
answers1037
viewsQ: Capture form data and transform to UPPERCASE
I have the input: <input id="id_nome" name="nome" type="text" class="form-control input-style" style="text-transform: uppercase" autofocus required> I have the following function in Jquery:…
-
2
votes1
answer244
viewsQ: Uppercase Input does not work in Document.getElementById
I have an input: <input id="id_nome" name="nome" type="text" class="form-control" style="text-transform: uppercase" autofocus required> When I type it becomes capitalized thanks to transform:…
javascriptasked Gleyson Silva 429 -
2
votes3
answers7978
viewsQ: Change`id` of <Form> javascript or jquery element
I need to change the id of a form in HTML with javascript at runtime. I’m trying with Jquery and Javascript, but it’s not working. jQuery(this).prev("form").attr("form", "form_modulo"); or…
-
0
votes2
answers369
viewsQ: Alignment of div within html
I have two Divs, when hidden the first need that the second ascend to her place, but she does not move, as I can do for her is in place of the first div, ie climb? Follows the code: <!DOCTYPE…
-
0
votes2
answers332
viewsA: Document.getElementById does not work on Firefox and Edge
I solved the problem: 1) I placed the registration form in the same place as the consultation form, leaving visible or invisible when necessary. Researching further, I saw several people reporting…
javascriptanswered Gleyson Silva 429 -
0
votes2
answers332
viewsQ: Document.getElementById does not work on Firefox and Edge
**I have a page where I upload all the pages inside one <div content>: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="width=device-width,…
javascriptasked Gleyson Silva 429 -
0
votes1
answer42
viewsQ: Applying style to table in javascript
I have a table <div class="container-fluid" style="margin-left: -29px; margin-right: -29px"> <!--Striped Rows--> <div class="row clearfix"> <div class="col-lg-12 col-md-12…
-
0
votes3
answers1019
viewsQ: Return Notfound() Web Api c#
I need that if the return of Get of controller below for null he returns a specific message, where he has return NotFound(), but it’s not working as expected and I tried to implement separately but…
-
1
votes1
answer598
viewsQ: Path to the Webapi URL
I have a Webapi Rest service, I managed the controllers by the wizard that defined the answers in "api/{controller}/{id}", such as get by id: // GET: api/pessoas/5 [ResponseType(typeof(pessoa))]…
-
1
votes1
answer100
viewsQ: Icollection in Put Webapi method
I have the Put method in a Webapi Rest service // PUT: api/pessoas/5 [ResponseType(typeof(void))] public IHttpActionResult Putpessoa(int id, pessoa pessoa) { if (!ModelState.IsValid) { return…
-
1
votes1
answer256
viewsQ: Error while sending Json
I have the following variable: json_sending = JSON.stringify(obj); the value of the: "{"usuario": {"login":"gleyson", "senha":"1"}, "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA",…
-
3
votes5
answers5036
viewsQ: Join two Jsons into a single object
I have the following json: { "razao_social":"INTELIDER", "nome_fantasia":"INTELIDER LTDA", "rg_insc_estadual":"123456" } And another json: { "usuario":{ "login":"gleyson", "senha":"987654" } } I…
-
1
votes1
answer202
viewsQ: search and replace string javascript
I have the following syntax: var json_pessoa = JSON.stringify(json_pessoa["pessoa"]); // o valor do json_pessoa é "{"razao_social":"asd","nome_fantasia":"asd","rg_insc_estadual":"asd"}" , ele já é…
-
1
votes2
answers465
viewsQ: jquery.validate.js does not work without form-group (Bootstrap)
The validation of jquery.validate.js only works when the input this one inside <div class="form-group">, for example if I put the code: <div class="row"> <div class="col-sm-12…
-
1
votes2
answers2539
viewsQ: convert JSON to object
I have the following json [ {"name":"razao_social","value":"INTELIDER"}, {"name":"nome_fantasia","value":"INTELIDER LTDA"}, {"name":"cpf_cnpj","value":"10.999.558/0001-86"},…
-
0
votes1
answer318
viewsQ: change JSON.stringify data
I have a form with several fields when, I have a function that when submitting the form captures the fields: $('.form').submit(function () { var dados =…
-
0
votes1
answer114
viewsQ: Input Spaces in Twiter Bootstrap
In the registration forms the horizontal and vertical spacing are very large, I solved the problem by adding the style="margin-bottom:10px;margin-right:-10px" in each input, however, in the size Sm…
-
1
votes1
answer61
viewsQ: (json with object) ajax
How can I consume in ajax the following Json(Coming from a Web Api Rest?) [ { "usuario": { "id": 1, "login": "gleyson", "senha": "123", "ativo": "S" }, "id": 1, "tipo": "J", "razao_social":…
-
1
votes1
answer774
viewsA: Sublime text words with accent
I have windows 10, 64 bits with keyboard (US) and I have the same problem, not only in sublime text, but in any other program. Even following this microsoft tutorial…
sublime-textanswered Gleyson Silva 429 -
0
votes2
answers1109
viewsQ: Json Web Api with error
I have a REST service in WEB API, I use 2 related entities(person and user) relationships 1 = 1, the post to insert this ok, recover the data, searching for the user id as well, but when I try to…
-
1
votes1
answer629
viewsQ: Pass Onkeypress input value of button
I have an input: <input id="in_cpf_cnpj" name="cpf_cnpj" class="form-control" placeholder="Digite o CNPJ" required autofocus></> I need to send the value of the same, as parameter, to a…
-
1
votes1
answer181
viewsQ: Insert in 2 tables Entity framwork - 1 to 1
I have two entities generated by the code-first Wizard: Person [Table("pessoa")] public partial class pessoa { public pessoa() { pessoa_endereco = new HashSet<pessoa_endereco>(); }…
-
0
votes1
answer101
viewsA: Problem with wp_termmeta table
You can do it manually from the command prompt, or download the Mysql Workbench Client from the website https://dev.mysql.com/downloads/workbench/ , it is all graphic, but you can also create it…
-
0
votes1
answer1265
viewsQ: visibility:Visible in div javascript
I have the following div that this hidden: <div class="card" id="cnpj_erro" style="visibility:hidden"> <div class="body"> <div class="header bg-red"> <h2> CNPJ inválido…
javascriptasked Gleyson Silva 429 -
0
votes2
answers1654
viewsQ: Fill input with Function javascript result
I am using the following function to validate CNPJ in Input: function FormataCnpj(campo, teclapres) { var tecla = teclapres.keyCode; var vr = new String(campo.value); vr = vr.replace(".", ""); vr =…
javascriptasked Gleyson Silva 429 -
0
votes0
answers82
viewsQ: Access child class properties C#
Using code-first generated the class: namespace take8.Models { using Newtonsoft.Json; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using…
-
0
votes1
answer66
viewsA: asmx authentication
After researching, I understood that asmx is obsolete, miscrosoft leaves this option in Visual Studio only because it is 'legacy', I am developing in Webapi which is very simple and with many more…
-
0
votes2
answers594
viewsA: error GET method while consuming Webapi
I was able to solve the problem by adding [Jsonignore] to the virtual Property of each field I wanted you to ignore: [JsonIgnore] public virtual ICollection<categoria> categoria1 { get; set; }…
-
0
votes1
answer986
viewsQ: Configure HTTPS in Webapi
I made a Web Service using Webapi MVC5, with Visual Studio 2017. It’s working, but how do I use HTTPS instead of HTTP? Does anyone have any material for me to research? I found some things but with…
-
2
votes2
answers594
viewsQ: error GET method while consuming Webapi
I created a project in Aspnet Webapi, added a ADO(Database-first) to connect to the Mysql database and created the controller using the option 'Controller with read/write actions and views, using…
-
2
votes1
answer47
viewsQ: error left Join Linq
I cannot access the methods of a daughter class that was created using database first: namespace Dados { using System; using System.Collections.Generic; public partial class pessoa { public pessoa()…
-
2
votes1
answer468
viewsQ: Left Join in LINQ
I have the representation of 2 classes. first class: using System; using System.Runtime.Serialization; namespace WebService { [DataContract] public class PessoaDados { private Nullable<int>…
-
1
votes3
answers2817
viewsA: view var Javascript in div html
Thank you all for your help, but I decided to change the method of including the.html packaging page into a.html container by: <script type="text/javascript"…
-
2
votes3
answers2817
viewsQ: view var Javascript in div html
The code <section class="content"> <span></span> <span></span> <script type="text/javascript" src="../js/purl.js"></script> <script> var vars =…
-
0
votes1
answer64
viewsA: jquery ajax error
I figured out the problem, I should put result.Query: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body> <form id="form1">…
-
0
votes1
answer64
viewsQ: jquery ajax error
I cannot play the result of the ajax query inside a table. The result is an array (result = Object {Query categoriesresult: Array(6)}) <html xmlns="http://www.w3.org/1999/xhtml"> <head>…
-
0
votes1
answer84
viewsQ: ajax without query permission
I have a wcf webservice on the link http://food-fast-com.web27.redehost.net/ServiceUsuario.svc/ConsultarRegistroPorCodigo/2, I can consume it without problem in my local iis with ajax: Consulta…
-
1
votes1
answer22
viewsQ: result.lenght ajax error with wcf
The following script works in part: <script type="text/javascript"> function ConsUsuario(){ var value = $("#codUser").val(); $.ajax({ type: "GET", url:…
-
1
votes1
answer1246
viewsQ: Error consuming json using ajax
I have the following return in json: { "ConsultarRegistroPorCodigoResult": { "Codigo": 2, "CodigoSetor": 1, "Login": "ednilson1", "Nome": "Ednilson", "RegistroAtivo": true, "Senha": "123456",…