Questions tagged as 'atributos'

3
answers

What are these attributes in the properties?

What are the names of these "Attributes" and what are they used for? Examples: in a class declaration: [ComVisibleAttribute(true)] public sealed class SerializableAttribute : Attribute in a property declaration: [XmlElement] public...
asked by 23.12.2014 / 10:55
1
answer

What is the advantage of using the ENUM type?

When I use type ENUM because until today where I saw this type being used it could be replaced with VARCHAR or even with a simple CHAR , I can not see a case where it really is needed ? A practical example would be useful.  ...
asked by 21.08.2015 / 13:01
3
answers

Why was the parameterized class attribute T not instantiated?

I have this class that implements the IDAO interface package DAO; import java.util.ArrayList; public class BdApp<T> implements IDAO<T> { ArrayList<T> lst = new ArrayList<T>(); //ArrayList<Administrador> lstAdm...
asked by 11.02.2016 / 00:31
5
answers

What is the difference between referencing an attribute directly or by get / set

As an example I have a private String atributo , so I can have two ways to reference it, internally in the class: this.atributo And also: this.getAtributo(); Is it correct to say that it is wrong to use this.atributo and s...
asked by 19.05.2016 / 04:14
2
answers

Add attribute to an element

In JavaScript we can add attributes to a given element in at least two ways: var div = document.createElement('div'); div.id = 'meuId'; or var div = document.createElement('div'); div.setAttribute('id', 'meuId'); Is there any differenc...
asked by 02.04.2015 / 16:47
1
answer

Is it correct to name html tag attributes arbitrarily?

I'd like to know about creating and manipulating attributes in html that are created . We have the attributes already known as id , class , etc. that we put in the tags so we can manipulate them. I went in search of other alternatives of name...
asked by 04.02.2016 / 15:04
2
answers

How to insert an HTML file with [innerHtml] and maintain the attributes of the Angular

In my Componente I get HTML in the form of a String and use [innerHtml] to insert this HTML into the Component View. Component: test(){ alert('Teste :D'); } html_string = '<input type="button" (click)="test()">'; View:...
asked by 16.03.2018 / 23:18
2
answers

The contenteditable attribute does not work

<input type="email" name="email-empresa" id="email-empresa" placeholder="ex: seuemail@domínio.com" class="txt-input" contenteditable="false" value="[email protected]"> I'm having trouble making the input content not editable, because la...
asked by 29.08.2016 / 16:07
3
answers

Selecting the src of an input using ID in JQuery

if(!$("#src-img[src='']")){ }else{ }; I would like to know what is wrong with this selection in if, in case, I want, if a value is set in the src attribute, it executes if, otherwise else. * That's why I put the '! '     
asked by 22.12.2016 / 17:58
2
answers

HTML 'required' attribute by Javascript

I'd like to know how to do that, when activeBtn was checked, ordenadorBanners got the required attribute, I tried the template below but it did not work, I'd like to know how to do it, and the " why "having to do it that way. va...
asked by 01.08.2016 / 15:52