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


Groups > comp.lang.javascript > #16065

Re: jQuery to javascript

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From JJ <jaejunks_at@_googlemail_dot._com>
Newsgroups comp.lang.javascript
Subject Re: jQuery to javascript
Date Thu, 20 Sep 2012 23:11:30 +0000 (UTC)
Organization A noiseless patient Spider
Lines 38
Message-ID <XnsA0D53F7CF1499jaejunksgooglemailco@0.0.0.89> (permalink)
References <k3fpb1$qor$1@news.albasani.net>
Injection-Date Thu, 20 Sep 2012 23:11:30 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="f8ea35d8958493b8650c0b3ef1b6a34b"; logging-data="1702"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/z0sW8meNqTYT6SGTU7T9HWaB1J0akp3g="
User-Agent Xnews/5.04.25
X-Face \*\`0(1j~VfYC>ebz[&O.]=,Nm\oRM{of,liRO#7Eqi4|!]!(Gs=Akgh{J)605>C9Air?pad{sSZ09u+A7f<^paR"/NH_#<mE1S"hde\c6PZLUB[t/s5-+Iu5DSc?P0+4%,Hl
Cancel-Lock sha1:qTcZfuWLaZ8cHK9lXybz4G312ls=
Xref csiph.com comp.lang.javascript:16065

Show key headers only | View raw


j <mung_me@att.net> wrote:

> I'm not a jQuery user.
> 
> I've been trying to use the mediaelement.js library for HTML5 
> audio/video elements which includes silverlight/flash fallbacks for 
> noncompliant browsers (IE < 10).
> 
> The docs are confusing and all I really can find are examples using 
> jQuery,like this:
> 
> 
> $('video').mediaelementplayer({
>      success: function(media, node, player) {
>           var events = ['loadstart', 'play','pause', 'ended'];
>           
>           for (var i=0, il=events.length; i<il; i++) {
>                
>                var eventName = events[i];
>                
>                media.addEventListener(events[i], function(e) {
>                     $('#output').append( $('<div>' + e.type +
>                     '</div>') ); 
> ...
> 
> $('#output') must be document.getElementById('output')
> 
> I'm unsure of $('video'),an object?
> 
> And this: $('<div>' + e.type + '</div>') loses me completely.
> 
> So, I'd like to know one or more several things.
> 
> What does that jQuery mean? Is there audio/video player with IE
> fallback support that is better? Where the hell is the API/method list
> for mediaelement.js

Hint: Look at the mediaelement.js source code.

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


Thread

jQuery to javascript j <mung_me@att.net> - 2012-09-20 15:04 -0400
  Re: jQuery to javascript JJ <jaejunks_at@_googlemail_dot._com> - 2012-09-20 23:11 +0000
  Re: jQuery to javascript David Mark <dmark.cinsoft@gmail.com> - 2012-09-20 17:51 -0700

csiph-web