Classname may refer to classes in scripting languages and markup languages. Typically, a class denotes a certain part of the application which can be manipulated.
Questions tagged [classname]
620 questions
0
votes
8 answers
Java - Name for money class
What should I name my class that stores costs/prices/amounts of money in CAD/USD as separate longs for dollars and cents? I has "PriceInDollars", but I don't really like that, and I always forget it. Any ideas?
EDIT: Apparently I should use…

mk12
- 25,873
- 32
- 98
- 137
0
votes
6 answers
$(.class) only executes for the first tag of that class name
I am trying to make a javascript function that goes through the web page and looks for all of the tags of class name "option" and hides the ones that match the text in each of the if statements shown below.
In the example below, I tried using…

fudge22it
- 103
- 1
- 2
- 13
0
votes
1 answer
jquery match unique classname
I'm trying to get comments working in a slider for wordpress with jquery. I'm not an expert by no means so i'm asking for some help. Here's what I have so far.
content here

user1813098
- 25
- 1
- 7
0
votes
1 answer
G++ builtin for getting class name from a class object pointer?
As the title asks, are they any g++ builtin function (or any method) to know the class name from a class object pointer?
For instance,
class Base {
};
class A : public Base {
};
class B : public Base {
};
void some_func(Base *p) {
printf("the…

jaeyong
- 8,951
- 14
- 50
- 63
0
votes
1 answer
Actionscript - shortcut reference to long class names
Is there a way to do something akin to import as in actionscript? I've got some classes that I don't want to type the full class name out for every time I use them. That's why I'm trying to find an import as, or var C =…

d0c_s4vage
- 3,947
- 6
- 23
- 32
0
votes
2 answers
Python invalid syntax when using eval(strClass)
I have a list of class names as strings, and if I say fe. print(cNames[0]) it will result into Foo since cNames[0] = "Foo". Now if I wanted to compare a class string with a class, I would do this:
if eval(cNames[0]) in classes:
foo =…
user1632861
0
votes
2 answers
Use JavaScript to Replace Classname Value
I want to replace every occurrence of the numbers with the string: ???.
Here is an example string:
Chelsea 1-4 Atletico Madrid
How can I do this in JavaScript?

user1515425
- 31
- 3
0
votes
1 answer
Why is java.lang.IllegalStateException being generated when trying to access a class?
I'm trying to get a class whose instance has already been created and I want to use that instance. The name of the needed class and the correct package is specified. However. I'm getting an java.lang.IllegalStateException stating that the specified…

ict1991
- 2,060
- 5
- 26
- 34
0
votes
1 answer
Qt QMetaData classname implementation
I have been looking around QMetaData and QObject calling the className(). I want to replicate this in my own class but I cannot figure out how QT does it. What I mean is, I do the following but it does not output the correct class (ignore any syntax…

user654628
- 1,429
- 1
- 17
- 37
0
votes
2 answers
Remove class from all -tags within a certain div using jQuery
I'm using jQuery and have managed to paste together a simple accordion which can ONLY have one section of the accordion open at the same time. Each section of the accordion which has subitems has a "+"-sign to indicate this. When the section is…

user1425385
- 127
- 2
- 10
0
votes
1 answer
HTML5 -webkit-transition doesn't work if I set it right before setting something else using javascript on chrome
I'm still new to HTML5 but I faced a very strange behavior. (In Chrome)
The following code works on chrome:
Webkit-transition test