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


Groups > comp.lang.javascript > #16065

Re: jQuery to javascript

From JJ <jaejunks_at@_googlemail_dot._com>
Newsgroups comp.lang.javascript
Subject Re: jQuery to javascript
Date 2012-09-20 23:11 +0000
Organization A noiseless patient Spider
Message-ID <XnsA0D53F7CF1499jaejunksgooglemailco@0.0.0.89> (permalink)
References <k3fpb1$qor$1@news.albasani.net>

Show all headers | 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