View Full Version : Help with videobox + mootools

05-31-2009, 02:18 PM
Hope someone can help.

I use mootools ver. 1.2.2 for for AJAX i also use the demo AJAX JS file from the mootools site to run the AJAX, this works fine. The demo.js i use starts off by adding an event,

window.addEvent('domready', function()

and then a bit more code than that so hence it loads when the page loads.

Now i also want to use videobox which comes bundled with mootools 1.11 it also uses swfobject.js and videobox.js and then all you need to do is add ,

<input type = "button" onclick = 'Videobox.open("http://www.youtube.com/watch?v=VhtIydTmOVU","your caption","vidbox 600 400");' />

Both of these things work fine independently but if i put them on the same page using mootools 1.2.2 AND, i combine the demo.js and videobox.js code into one file, as otherwise the videobox won't even show(bit of guess work) then the videobox overlay does partially show but the video doesn't show, it looks like this,


whereas it should look like this,


I don't think it's a big conflict but way too advanced for me to fix, i have tried for a good while though.