Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #19400

Re: Based on its src value, find an image and assign an ID?

Message-ID <1725229.qyl6rJbcuh@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-04-21 11:09 +0200
Subject Re: Based on its src value, find an image and assign an ID?
Newsgroups comp.lang.javascript
References <kkv0sq$8mp$1@news.albasani.net> <kkv24n$b15$1@news.albasani.net> <3001426.0veXviQ4o9@PointedEars.de> <1077873c-4137-48a9-8952-29bd465d9586@o9g2000vbk.googlegroups.com>

Show all headers | View raw


Scott Sauyet wrote:

> If you are already using a library that has a feature compatible with
> querySelector, such (as Stefan pointed out) as jQuery or one of the
> many others [1], this would be trivial to use.  If you are quite
> certain the code will only run in environments which include
> querySelector, or if you include a polyfill for it, then it's also
> quite easy.  […]
> [1] I'm no expert, but I know of a few, and a quick search turned up
> many more:
> […]
>     I make no recommendations for or against any of these.  In fact,
> I've only tried three of them.  I'm sure there are many more around.

It is no surprise that in your uncalled-for haste to “put things right”, the 
utter folly of a query engine “polyfilling” document.querySelector(All) is 
still escaping you.

<http://www.fortybelow.ca/hosted/dhtmlkitchen/JavaScript-Query-
Engines.html> 

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Based on its src value, find an image and assign an ID? Tuxedo <tuxedo@mailinator.com> - 2013-04-20 23:21 +0200
  Re: Based on its src value, find an image and assign an ID? Stefan Weiss <krewecherl@gmail.com> - 2013-04-20 23:42 +0200
    Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 00:22 +0200
      Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 00:36 +0200
      Re: Based on its src value, find an image and assign an ID? Stefan Weiss <krewecherl@gmail.com> - 2013-04-21 00:52 +0200
      Re: Based on its src value, find an image and assign an ID? Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-20 17:20 -0700
        Re: Based on its src value, find an image and assign an ID? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-04-21 11:09 +0200
          Re: Based on its src value, find an image and assign an ID? Scott Sauyet <scott.sauyet@gmail.com> - 2013-04-23 06:32 -0700
  Re: Based on its src value, find an image and assign an ID? x@x.com (znôrt) - 2013-04-21 00:56 +0200
    Re: Based on its src value, find an image and assign an ID? x@x.com (znôrt) - 2013-04-21 00:59 +0200

csiph-web