Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Loading New Playlists ... problem


I'll try to do the same thing as it's post here: but I fail.

Here is my code:

<script src=""></script>

In my page, I would like that visitor can change the playlist by clicking links in menu with <ul><li>:

<ul class="menuCombo">
<li class="item1"><a href="#">Genres</a>
<ul id="firstmenu">
<li class="subitem1"><a href="javascript:loadPlaylist(playlistOne)">Institutionnel</a></li>
<li class="subitem2"><a href="javascript:loadPlaylist(playlistTwo)">Bandes Annonces</a></li>
<li class="subitem3"><a href="javascript:loadPlaylist(playlistThree)">Publicités</a></li>

Here are my scripts:

<!-- Player JWPLAYER: Initial Playlist , there is a first playlist who plays when we arrive at the page and I use a Json link -->
<script type="text/javascript">
"playlist": ""

<!-- Here I copy the code of the tuto and I would like to use Json links too. As that doesn't work, I tried with different syntax -->

<script type="text/javascript">
//Define our three playlist arrays
var playlistOne = [{
var playlistTwo = [{
var playlistThree = "";

//Create a function to load a playlist var
function loadPlaylist(thePlaylist) {

Here is the webpage:

Thanks for your help.

3 Community Answers


JW Player Support Agent  
0 rated :


When calling load(), the only required parameter to pass is the URL of the new playlist, so you only need to define playlistOne as ‘’ , etc

or just use

<li class="subitem1"><a href="jwplayer('mediaplayer').load('');">Institutionnel</a></li>

Herve Lacroix

0 rated :

Oh yes it's very simple...I was stupid.
Thanks so lot.


JW Player Support Agent  
0 rated :

You’re welcome. Glad to hear that this worked for you.

This question has received the maximum number of answers.