Posts by Ruan Nawe • 153 points
11 posts
-
3
votes7
answers115219
viewsA: Mask for CPF and CNPJ in the same field
$('#cpfcnpj').mask('000.000.000-00', { onKeyPress : function(cpfcnpj, e, field, options) { const masks = ['000.000.000-000', '00.000.000/0000-00']; const mask =…
-
0
votes1
answer45
viewsQ: Regular expression for zip file
How to add a zip file instead of an image? class UploadDatabase < ActiveRecord::Base has_attached_file :zip_file, styles: { medium: "300x300>", thumb: "100x100>" }, default_url:…
-
0
votes0
answers115
viewsQ: Take the value of a select_tag and put it into a variable
I want to take the value of this select_tag and put it in the link_to message <%= select_tag(:testee, options_for_select(CloneDatabaseController.find_all_models)) %> <%= link_to('Click…
-
0
votes1
answer279
viewsQ: Nameserve: Undefined method `send_data' for Clonedatabase:Class
Rails does not find method send_data clone_database.rb require 'zip' class CloneDatabase < ApplicationController def self.make_clone zip_data = 'a'.to_json send_data zip_data, type:…
-
0
votes0
answers40
viewsQ: f. label is overwriting the information that is in f.text_field
<div class="input-field col s12"> <%= f.label "Número do SUS" %> <%=f.text_field :sus_number %> </div> <div class="input-field col s12"> <%= f.label "Paciente"%>…
-
1
votes0
answers160
viewsQ: How to uncheck a checkbox when another is selected?
<t:selectOneRadio layout="pageDirection" forceId="true" forceIdIndex="false" id="selectCodigoProcesso" rendered="#{!bkbCadastroPessoaJuridica.orgaoEntidade}" styleClass="envolveRadio"…
-
0
votes1
answer867
viewsQ: How to integrate Java code with Javascript?
//retorna o usuário logado no sistema public class ContextObject { public static Usuario getUsuario() { ContextObject contextObject = ContextFactory.getContextObject(); return contextObject.usuario;…
-
0
votes0
answers107
viewsQ: I want to call 3 or more different links within the same iframe, according to an ID, or something, that I can do in Javascript
That’s the iframe who calls a link, wanted to maintain this structure of iframe and may call for more iframes maintaining this structure: <div> <iframe width="1100" height="500" id="teste"…
-
0
votes0
answers574
viewsQ: Calling a Javasript function from an html code. Note: Javascript code is in the same file
I need to call functions in html without a button, calling when a part of the html code is executed. with the button I already did, it looks like this : <input type="button" value="Nome do botão"…
-
-1
votes1
answer1666
viewsQ: How to position the iframe below according to the position I want on the screen?
How to position the iframe below according to the position I want on the screen? <div> <iframe width="1100" height="500" id="processoControleExterno" src="www.google.com" scrolling="no"…
-
1
votes2
answers1735
viewsQ: How to make a button that calls an iframe
In the iframe below, I need it just to be shown when I click any button. How do I do this? <div> <iframe width="1100" height="500" id="iframe" src="https://www.google.com" scrolling="no"…