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


Groups > comp.lang.javascript > #21935

Re: Using html5 data attribute

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Content-Type text/plain; charset="UTF-8"
Message-ID <1472452.mSG3TjeU6D@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Organization PointedEars Software (PES)
Date Fri, 08 Nov 2013 18:37:04 +0100
User-Agent KNode/4.10.5
Content-Transfer-Encoding 8Bit
X-Face %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&.<b';Md8`dH6iqhT)6C^.Px|[=M@7=Ik[_w<%n1Up"LPQNu2m8|L!/3iby{-]A+#YE}Kl{Cw$\U!kD%K}\2jz"QQP6Uqr],./"?;=4v
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV2uxjDpGaGeozOp1woar4jd5t/v9wLstMwsA/ntlxdCAgUc1hjTc9/JCZfGoo3wG3HdmdAWrIJRHe7GM/TmpY5VFefuVcAkkPbLIaN8rmPmjloyZxgyR3GuJ4K0AGtJ2htz8o7yqikm759fldQXaMpbDzjKAG+8v+AugVTOPO5DOjLvGtUYQwh0CPjnVMyGd+8/GfUB5nLKJDD2aLDh5HYyMDJGDwQIo2ZmZcKbowNmAdB/AzyFhrmF2MHRb0QJJfaAnwGB6orZhoykLzJtGwF/xpYxI1dswomiUj3gTuAIqCn/4C7cULwGNBtwMTk3Y4LfKB5YUaOKBKYtpplm7u0vip8tU1NWWyI/7XdcSuIDoMt6rVHMWT0DbjHPGqDqZVSa6zleLcUTcIKLoMv3ueJluALtAo9B302zPPlrtiVScRdCjXvVh3e3JpYa/jjkuC9N+LrBMlz/eAN4eQijX2EdLo6c5tGGHwLyHFtXk89dDGHwCVhG9T0S/j55AhRZgkMCmUQXJ49TnS1wnQDvw0eAh9ICeMmEFbCnPMFzjAvsWoEWEFdYEx+S0MoUZ1gT1wId8+AF3Bl2OoEu906AUHx5VLw/gXYg/x84loOah/2UYNrgiwSwGO7RfUzVBbx/kgpckumGOi6QirtD6gkLTitbnxNol47S2jVc2vsN5kPqaAHT8uUdAJM4v/DanjYOwmUjWznGfwB7sGtAtor5BgofDuzaRj4kSQAqDakTsKORa3Q3xKi3gE1fhl71KRMqrdZ2AWNNg/YOhQyrVBnb+i+nEg4bsDA+egAAAABJRU5ErkJggg==
Subject Re: Using html5 data attribute
Newsgroups comp.lang.javascript
References <167ecvxd9ci26$.dn66xn5j59bv.dlg@40tude.net> <0.5ee22dfa29786aa02d1a.20131108170431GMT.87r4aqvn8g.fsf@bsb.me.uk>
MIME-Version 1.0
Lines 48
NNTP-Posting-Date 08 Nov 2013 18:37:07 CET
NNTP-Posting-Host 50f2d638.newsspool2.arcor-online.net
X-Trace DXC=Fdm>KH0P[Yeg`45cDR8l?oA9EHlD;3Ycb4Fo<]lROoRa8kF<OcfhCOkgUnZ0:D:6`jDZm8W4\YJNlYUVHKH;GI^g\>@[hLNg?miBbbo<]j>gHi
X-Complaints-To usenet-abuse@arcor.de
Xref csiph.com comp.lang.javascript:21935

Show key headers only | View raw


Ben Bacarisse wrote:

> richard <noreply@example.com> writes:
> <snip>
>> <a class='aplay' href='#' data-src='http://mroldies.net/200/6020.mp3'
>> data-info="6020">
>>
>> Problem is, I have seen dozens of sites discuss the recovery of the
>> attribute. But then, they leave out how you use it.
>> Such as the simple act of printing that information.
> 
> It's not at all clear that you want to do this.  You've posted other
> fragments here and in a PHP groups that provide enough information that
> I think the problem is not *how* to x, y or z, what *what* to do.
> 
> I don't think you have worked out the design yet -- you seem to be try
> one thing and then another.  If I were you, I'd post in a very general
> group like alt.html to talk about the design.  That way you can settle
> on what parts need server-side code and what parts need client-side
> code.

No need to leave the Big8, though; there is 
comp.infosystems.www.authoring.html.  In this case, the “very general group” 
would be comp.infosystems.www.authoring.misc.

However, keep in mind that this particular OP has a long newsgroup history 
of not RTFM, RTFFAQ, of ignoring any advice, and getting nasty when being 
told that this approach is a Bad Idea, which does not bode well for the 
future.  Like many nice and knowledgable people before you, you might be 
wasting your precious free time with this one.  You have been warned.
 
>> The php page contains the full array so there is no database involved.
>> I want to match photos with the current playing song.
>> The way I have it set up, photo names abd song names are equal.
>> i.e. 6020.mp3 will pair with 6020.jpg.
>>
>> So how do I do this?
> 
> I would not use a client-side script.  I'd make the "play" link to be a
> server-generated page that has the song and the pictures in it.

With XHR you can have both.

-- 
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

Using html5 data attribute richard <noreply@example.com> - 2013-11-08 09:26 -0500
  Re: Using html5 data attribute Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-08 17:04 +0000
    Re: Using html5 data attribute Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-11-08 18:37 +0100
      Re: Using html5 data attribute Ben Bacarisse <ben.usenet@bsb.me.uk> - 2013-11-08 18:36 +0000
      Re: Using html5 data attribute John Harris <niam@jghnorth.org.uk.invalid> - 2013-11-09 09:59 +0000
  Re: Using html5 data attribute Denis McMahon <denismfmcmahon@gmail.com> - 2013-11-08 17:49 +0000

csiph-web