AJAX Video bar - number of videos

0 views
Skip to first unread message

dueppe

unread,
Oct 27, 2008, 5:12:50 PM10/27/08
to Google AJAX APIs
Hi group,

as a newbie I just found the AJAX Video bar widget and I asked myself
if it's possible to modify the videos which will be listed.
If this is possible (which would be great), what do I have to do?

Thx a lot for your support,

//dueppe

Ben Lisbakken

unread,
Oct 27, 2008, 8:01:22 PM10/27/08
to Google-AJAX...@googlegroups.com
Hey Dueppe --

Can you provide more detail about what you are trying to do?  In what way do you want to 'modify' the videos?

Thanks,
Ben

dueppe

unread,
Oct 28, 2008, 11:04:39 AM10/28/08
to Google AJAX APIs
Hi Ben,

I simply want to control the number of videos listed in this widget.
Is there a chance?

Thanks, dueppe

Ben Lisbakken

unread,
Oct 28, 2008, 1:21:39 PM10/28/08
to Google-AJAX...@googlegroups.com
Dueppe --

Sure, there's two ways.  One way is to use the "largeResultSet" option:
var options = {
  largeResultSet : true,
  autoExecuteList : {
    cycleTime : GSvideoBar.CYCLE_TIME_MEDIUM,
    executeList : [ "ads", "bud light", "vw gti", "the blue angels" ]
  }
}

Another way is to use CSS to manually get rid of videos.  The class name on each of the TD elements that hold the videos are .resultCell_gsvb.  If you create a CSS rule:
.resultCell_gsvb {
  display: none;
}
then that will hide all of the videos.  From there, you will need to use Javascript (getElementById, getElementByTagName) to grab the video TD's and set CSS rules on them to display as many as you want.  Aka, loop through the TD elements with class name == resultCell_gsvb and set the first 2 of them to have the CSS rule display:inline.

Hope this makes sense.

-Ben

dueppe

unread,
Oct 29, 2008, 3:53:28 AM10/29/08
to Google AJAX APIs
Hi Ben,

yes, that does make sense!

Thanks a lot.

-dueppe

davveh82

unread,
Oct 29, 2008, 9:57:09 AM10/29/08
to Google AJAX APIs
Hey Ben,

I got to say that I have the same problem but this doesnt make sense.

I want to have only 1 video that I choose in my bar.

Can someone explain what I need to do to be able to get it this way?

With the largeresultset i cant choose one exact movie, right?

The CSS way was abit to complicated. Sure, I know how to make it use a
CSS but dont know what to type.

Im glad for any help that i can get!

Regards
David
Reply all
Reply to author
Forward
0 new messages