Questions tagged [targeting]

"Targeting" is to make a thing or group a target, to select it or them to be acted upon. In a context of programming, is to select or wish to select an object or entity and to execute some code that has effect on the 'target'.

"Targeting" is to make a thing or group a target, to select it or them to be acted upon. In a context of programming, it is the action of selecting an object or entity with one part of the code and do something specific to the 'target'.

In most programming languages we define targets with an 'id' and give it a unique identifier; setting variables that hold a target object, etc. This allows us to then reference it at ease, which allows us to create solutions much more easily.

For example, in CSS we target elements with specific classes or id's and set rules for those to abide by:

.class #id {
    color: #FFF;
}
170 questions
0
votes
3 answers

How to target items

I have currently a main style sheet, but multiple pages using that sheet, i do not want to make multiple style sheets, as I am using PHP to out put it. How do I target specific elements such as a text area, Like:
0
votes
1 answer

JQuery and Nested Tables - Targeting the right target to add/remove or show/hide

So as usual, I'm having a hard time finding the right instruction for what I'm attempting to accomplish and it's getting a little 'twisty' for what I know so far. What I'm attempting to accomplish: I'm building a client system that will a) hold a…
Steve
  • 67
  • 2
  • 2
  • 9
0
votes
1 answer

Ajax GET HTML returning undefined 'src' for images

I have worked with this before and had no problem targeting div's but this time I am targeting images buried in a table that has been on the intranet site for a long time. I finally found the code for it and added a class name to the table called…
Erik Grosskurth
  • 3,762
  • 5
  • 29
  • 44
0
votes
2 answers

how to target a class within a variable using jQuery

Not sure if I phrase the question correctly, but I'm trying to target a class within another class, but I've declared the parent class as a variable.

hello world

var a = $('.parent'); var b =…
calebo
  • 3,312
  • 10
  • 44
  • 66
0
votes
3 answers

Targeting Specific Divs

Ok, what I'm trying to figure out it how to use jQuery to work out which div is currently selected, highlights, etc and then to apply code to that div. For example, I have three divs lined up in a row. Each div has a class of .box. Within each div…
user1563944
  • 403
  • 7
  • 18
0
votes
1 answer

Event delegation, why is this not working, selecting target by id

Edit #2: The problem does not exist anymore. It was some kind of scoping problem. But now it's working.I am really sorry for the inconvenience. In some part of my script there's an event delegation and specifying target by id. But when i run it.…
Rafael Adel
  • 7,673
  • 25
  • 77
  • 118
0
votes
4 answers

Add target="_top" to Expression Engine Login Form Tag

I'm using the login form tag inside of a fancybox iframe. For my return parameter, I'm using , so that it takes the user back to whichever page they started from. Unfortunately, it takes them back to that page…
Ty Morton
  • 733
  • 2
  • 8
  • 29
0
votes
1 answer

Targeted ads in iOS app

How can I put targeted ads in iOS apps? I downloaded an iOS app that has very well targeted ads from DoubleClick. I'd like to target by keywords that I supply. For example I'd like to specify "fishing", "outdoors" and "camping" and have relevant ads…
SundayMonday
  • 19,147
  • 29
  • 100
  • 154
0
votes
1 answer

openX targeting channel setup ("OR"-functionality)

I have a site that uses OpenX for banner delivery. I want a banner that shows up when people are in a sports section of my site, so only when people are on site.com/football site.com/baseball I set up a targeting channel for that which only shows…
patrick
  • 11,519
  • 8
  • 71
  • 80
-1
votes
1 answer

How to target multiple classes of same element (ordered list ol)?

I use CSS counters to create some variations of an ordered list
    . I accomplish this by using different classes and tweak the styling of each class. Now I want the counters to respond to screen size, that's smaller numbers on smaller screens. I…
Hagelslag
  • 85
  • 8
-1
votes
2 answers

targeting words in a line of text

I have identified a line in a text file that looks like this: FLAGS = WORD1 WORD2 WORD3 I am reading several files in which the number of words can vary from 0 to a maximum of 3. I'm using this code: flag_FLAG = 0 for i in…
-1
votes
1 answer

Listening for child selector

CSS is amazing in that it is inherently reactive. It activity listens for true/false rules. So how can I get CSS's reactiveness to change a (cousins?) child selector? Something like this... .loading-complete-message { display: none; …
D7460N
  • 29
  • 8
-1
votes
3 answers

Link Font Color Problem

I've been having a problem with the font color of the links on the template I have been working on. Please take a look at the code: http://www.wendyhenrichs.com/prob/ You'll notice that the color of my header link is the same color as the links on…
Miles Henrichs
  • 2,300
  • 3
  • 20
  • 23
-1
votes
1 answer

How can i get the enemy missile to target the player instead of origin?

My game has a level where enemies fly in and fire missiles at the play, they're supposed to target the players local at the moment they were fired but when they're fired they only hit the player when its moving left to right, when it moves forward…
Nosmo
  • 1
  • 1
-1
votes
1 answer

Styling all unchecked checkboxes after an item is selected

I am currently styling a form that already utilizes the checkbox trick of styling the labels to look how I want them to look, and so far I have had success with this. However, my goal is to have all of the checkboxes appear as normal, but once an…
JMC_3030
  • 119
  • 2
  • 8
1 2 3
11
12