jquery.media.js javascript is not in <head> for views - no player in views

thepiano - September 6, 2008 - 15:24
Project:jQuery Media
Version:6.x-1.4-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

It works as claimed when I view a CCK node containing that filefield: the player was loaded.

When I create a Views that display that CCK node type containing that filefield, the link was shown instead of the player.

I realised that in the Views page, the <script type="text/javascript" src="/sites/all/modules/jquery_media/js/jquery.media.js?D"></script> isn't there.

Is it a Drupal error or JQuery Media error, which results in that script tag not added in a Views page?

regards,
Yong Meng

#1

gazzb - September 18, 2008 - 01:51

subscribing

#2

hansrossel - October 6, 2008 - 08:39
Title:jquery.media.js javascript is not embedded inline in <head>» jquery.media.js javascript is not in <head> for views - no player in views

same problem here with Drupal 5 version.

#3

otinanism - March 23, 2009 - 21:53

Any solution for this issue??? I have the same problem.

#4

vthirteen - May 8, 2009 - 16:58

subscribing

#5

jlmeredith - August 9, 2009 - 03:23

Seems like this makes this nearly useless for any serious project build since displaying these items in views is nearly required. Off to look for another solution until this is resolved.

#6

timhsieh - September 2, 2009 - 02:03

Pardon if I'm poking my head into places where I'm not so knowledgeable, but calling jquery_media_add() (and thus drupal_add_js()) from hook_footer() does not allow the js to be added to the header. Would calling it in hook_init() instead cause any issues? It seems to work, but my testing was not exactly, um, "extensive".

#7

MantasK - November 8, 2009 - 13:04

#6 works for me, thanks

 
 

Drupal is a registered trademark of Dries Buytaert.