Posts by Wilson Rosa Gomes • 594 points
50 posts
-
0
votes1
answer153
viewsA: Java Script does not inject HTML correctly
I created an index.html page and an index2.html page with no code in the tag, but I only bring the menu.html file. I believe it is a possible solution for you to adapt and use as you wish, remember…
-
1
votes3
answers88
viewsA: Textarea that calls a User List when the F2 key is pressed
the variable "users" is simulating all the logins that you recovered from the database, if you put the code you use to recover this information I can edit this answer and help you better let users =…
-
1
votes1
answer219
viewsA: Select row in table to delete
Follow this practical example that you should fit with PHP for: insert "id" and "line" into "tboby tr" Change From: Onclick // To: onclick recorded the ID’s in the "arrIDS" array for you to send by…
-
0
votes1
answer30
viewsA: Pass value of a line in the table for inputs on the same page
Try to do it that way $(function(){ $('#Tabela tbody tr').on('click',function(){ const id = $(this).attr('id'); const cod = $('#Tabela tbody tr[id='+id+'] td').eq(0).html(), nome = $('#Tabela tbody…
-
0
votes1
answer161
viewsQ: Remove Multidimensional javascript array duplicity
I don’t know how to do not include duplicates, or remove duplicates after added, can help me please? Obs: I checked other codes I found on stakoverflow and other sites, but they didn’t work for me.…
-
0
votes1
answer1174
viewsA: Problems loading a Datatable in Page Load with Javascript
$(document).ready(function(){}); and $(function(){}); //modo abrevidado do ready are the same thing, so you can’t call one inside the other. The best is to use the one you like best. $(function(){…
-
0
votes1
answer1496
viewsA: Serialize() jQuery method not working
Maybe the problem is with Java code because I changed the names to demonstrate how serialize works(); I changed the button type from "Submit" to "button" I changed the function call from:…
-
0
votes1
answer144
viewsA: Back arrow to the previous slide is not working
Error 01 > Failed to identify object ID correctly: "Back" function: $("slide ul li"). last() Solution: $("#slide ul li"). last() Error 02 > Global variable declaration - Declaration of the…
javascriptanswered Wilson Rosa Gomes 594 -
0
votes1
answer132
viewsA: Display block does not work in Safari
Use the methods below: classList.add() and classList.remove(); Example: $('#cadastro_pedido').click(function(){ //document.getElementById('loading').setAttribute( "class", "loadingShow" );…
-
0
votes5
answers289
viewsA: Capture text within the option tag
Use the example in the Jquery API - Reference: JQUERY $(function(){ $( "select" ) .change(function() { var str = ""; $( "select option:selected" ).each(function() { str += $( this ).text() + " ";…
-
0
votes2
answers174
viewsA: Numerous if and Else conditions
Same result with a generic function. function fMaiorMenor(op){ var num_1 = document.getElementById('num1'), num_2 = document.getElementById('num2'), num_3 = document.getElementById('num3'), num_4 =…
-
-1
votes2
answers2005
viewsA: How not to lose the form fields, after validation with PHP
You are sending a request via form to the file Insert.php, but the page that has the form is HTML and when sending the information the page is updated and in this case it is like a new page, IE, the…
-
1
votes2
answers44
viewsA: Error while performing a SQL filter
Put your queries in variables this way you will have more control of the result. <?php $sql = "SELECT id, senha FROM conta WHERE senha ='".$senhalog."';"; //echo $sql;…
-
0
votes1
answer41
viewsA: Read cookie["PARENT"]["CHILD"] in PHP
I did it this way if ( isset($_COOKIE["PAI"] )) { $valor = $_COOKIE["PAI"]; $items = explode("FILHO=", $valor); print_r($items); RESULTADO DO PRINT_R [ Array ( [0] => prevlogoff=23/03/2018…
phpanswered Wilson Rosa Gomes 594 -
0
votes1
answer41
viewsQ: Read cookie["PARENT"]["CHILD"] in PHP
I need to read in PHP an existing cookie, created in classic Asp. <% Response.Cookies("PAI")("FILHO") %> I tried to read in PHP this way below and it didn’t work, please help me <?php if (…
phpasked Wilson Rosa Gomes 594 -
0
votes3
answers61
viewsA: How to capture background value: url('URL') using jQuery?
var chatImg = $('.chatImageUser').attr('style').split('//')[1]; chatImg = chatImg.replace("');",""); console.log(chatImg);
jqueryanswered Wilson Rosa Gomes 594 -
0
votes2
answers642
viewsA: Changing the functioning of Fullcalendar
Reference: https://fullcalendar.io/docs/eventClick $("#calendar").fullCalendar({ events: [ { title: "Test event", id: "821", end: "2018-03-18 14:00:00", start: "2018-03-20 06:00:00", description:…
-
0
votes1
answer980
viewsA: How to translate the Full Calendar header schedule?
Hello I did this way to translate everything when unzipping the fullcalendar zip, you will have the address: fullcalendar/locale/en.js. make the file call on the page in question <script…
-
0
votes2
answers39
viewsA: How to apply the Hover method in my class?
I did not understand your code in relation to your question, but it follows an example: $('div.classe').on({ mouseenter : function(){ /* ação do evento */ } ,mouseleave : function(){ /* ação do…
-
0
votes2
answers11683
viewsA: Make file available for download via Avascript
my problem was: download after selecting a solved option like this: <select id="tipo_documento" name="tipo_documento"> <option value="" disabled="disabled" selected="selected">.::…
-
5
votes1
answer699
viewsA: How to format date for dd/mm/yyyy hh:mm using Javascript?
I needed it once, so I did the basics: <script> var data = new Date("Fri Sep 22 2017 14:42:35 GMT-0300"); var dia = data.getDate(); dia = zeroAEsquerda(dia, 2); var mescru =…
-
2
votes5
answers32771
viewsA: How to calculate the age of a person with JS, from the date of birth?
Hello, I adapted the code of @Gabriel S. to accept date in the Brazilian standard. function calcIdade(data) { var d = new Date, ano_atual = d.getFullYear(), mes_atual = d.getMonth() + 1, dia_atual =…
javascriptanswered Wilson Rosa Gomes 594 -
0
votes0
answers37
viewsQ: Email duplicity using PHP Mail()
I need help, I don’t know where is the error to generate e-mail duplicity only for $to. Below is my code: $mails = '[email protected]'; $Nome = 'Fulano'; $Email = '[email protected]'; $to =…
-
0
votes1
answer179
viewsA: problem when dragging ckeditor image
Hello, I use the version of Ckeditor 4, I have not had this problem since I started using this code below: in my script I use this call to inform the textarea: CKEDITOR.replace( 'texto1', {…
-
0
votes1
answer112
viewsA: Print request.form values
your form is set to "post" and in addition the action contains information "GET". To receive data via POST in Asp is used request.form("campo") To receive data via GET on Asp is used…
-
0
votes3
answers1971
viewsA: Calling javascript function from within a Classic ASP block
Hello, double use the """" quotes in this way the ASP will interpret normally if you use quote ' the ASP understands that is a comment. in your example code I checked that src="" was incorrect.…
-
0
votes4
answers7389
viewsA: How to make Ajax requests, with Jquery, on different domains?
Hello use as the example below: ( jquery site ) <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>jQuery.getJSON demo</title> <style>…
-
0
votes4
answers23311
viewsA: Force Javascript File Update Without Disabling Cache
This example needs a merge between: Database + Jquery + Json + ASP Classic( replace with your programming language) + HTML Create a simple table in the database: Tabela: atualize_me Colunas: id(…
-
3
votes1
answer51
viewsA: Prevent input from having default text
hello have you used Jquery? see how easy it is to solve your problem with it. <html> <head> <script…
-
2
votes3
answers933
viewsA: grade table
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head>…
javascriptanswered Wilson Rosa Gomes 594 -
0
votes2
answers1257
viewsA: Assign a value to checkbox in javascript
Hello below are some notes to help you in programming. 1) it is not correct to assign the same id name to several "fieldset2 objects" 2) it is not correct to assign id to the closing tag…
-
0
votes1
answer63
viewsA: Table mounted by input select
Hello, to clear put this code: $('select[id=produto]').change(function () { $('#estruturaTabela tbody').html('') // assim ele limpa o conteúdo da tbody ...... ...... });…
-
1
votes1
answer236
viewsA: Jquery and PHP validation does not work
Addendums to help you: search the web for javascript validations for CNPJ use the makedinput to include mascara in the fields Differentiate variable name from objects for easy handling Always…
-
1
votes2
answers2693
viewsA: Click on an image to show a div
Hello, if you want to better manipulate the page objects you can use jquery, I made a basic example <!DOCTYPE html> <html> <head> <meta charset="UTF-8">…
-
0
votes1
answer12
viewsA: Togglecss except on some Ivs
Hello, you can use a class you will receive this event <div class="EfeitoPagina"></div> <div></div> <div class="EfeitoPagina"></div> <div…
-
1
votes1
answer45
viewsA: How not to select a particular form element?
Hello, I hope the example below will help you, hugs. <html> <head> <script src="js/jquery-1.11.2.min.js"></script> </head> <body> <form id="frmParcelas">…
jqueryanswered Wilson Rosa Gomes 594 -
0
votes1
answer84
viewsA: Regarding jQuery functions, is it risky to use them in inline elements?
Think like this if you had a main.js file containing all functions of its application, it would be easier to do maintenance, now imagine the same code on several pages and you have to do…
jqueryanswered Wilson Rosa Gomes 594 -
0
votes1
answer164
viewsA: Error passing value in variable Where clause in SQL in ASP
The error occurs when handling recordset, it was not possible to put "& XX &" in the querie to call the contents of the variable <%'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ SEU CÓDIGO variavel1 =…
-
0
votes3
answers4432
viewsA: How to set a default option in a select with data-live-search HTML?
Dear the good is always test possible simple solutions and read the API to the fullest. So you can test future bootstrap plugins access the site Bootply. Following the basic concept that deals with…
html5answered Wilson Rosa Gomes 594 -
0
votes1
answer749
viewsA: Styling the Menu with CSS
<script> // Pega informação da página atual exemplo: www.missaoamar.com/index.html ou localhost/MissaoAmar/index.html // funciona para ambos os ambientes local e remoto v_pagina =…
-
2
votes2
answers4022
viewsA: Doubt with table in div css
Option 01 .div-table{ display:table; width: auto;} .div-table-row{display:table-row;width: 33%; /*se quiser pode colocar auto neste também*/} .div-table-col{border: 1px solid…
-
1
votes1
answer103
viewsA: Capture td value and move to a form?
Use Jquery that will make it much easier 1) First you must identify the line with the ID to perform a later query <table id="myTable" class="table table-striped table-bordered table-hover">…
-
0
votes3
answers3337
viewsA: INNER JOIN is duplicating record
I have already had this problem, and I used the dismemberment of the queries to understand its unsatisfactory result to what I wanted. I guide you to do the following: Possible problem you’re…
-
0
votes1
answer51
viewsA: How do I create list that by clicking call the function by sending a value?
<select id="linha"> <option value="1">item1</option> <option value="2">item1</option> <option value="3">item1</option> </select> <script>…
-
0
votes3
answers335
viewsQ: How to make Mappath Asp Classic
How to do Mappath Asp classic, use normal "/" or inverted bar " ", I can use methods and variables to include in the object address?
aspasked Wilson Rosa Gomes 594 -
0
votes3
answers335
viewsA: How to make Mappath Asp Classic
<% ' Para ajudar desmembre seu código pois fica fácil verificar o que está dando errado. '@@@@@@@@@@@@@@@ ANTES ind = ind & "<span><b><a…
aspanswered Wilson Rosa Gomes 594 -
1
votes1
answer970
viewsA: Perform update and Insert in mysql via Asp classic
Brother refitted his code and hope to have helped changed little thing ok The detail is that you in the subset connection() do the verification of an object that only exists in Abreconn(), so you…
-
1
votes1
answer229
viewsA: Problem with Mappath Classic ASP
Look, I would treat everything as best I could before I made the methods process something: <% ' Para te ajudar eu desmembrei seu código pois fica difícil saber o porque está dando errado então…
aspanswered Wilson Rosa Gomes 594 -
1
votes1
answer282
viewsA: Asp classico with Asp . net
Although the two programming languages have the same nomenclature: ASP (extension: Asp) ASP.NET (extension: aspx) They are totally different languages in Sesssions and methods, to try to remedy this…
-
1
votes3
answers359
viewsA: Monetary unit with JSON
Hello now I usually use the two functions below in Javascript and work perfectly, I will post below and after I leave a few examples ok. Javascript: function moedaParaNumero(valor) { return…