PDA

View Full Version : Using greybox inside the player


watty
02-08-2008, 05:46 PM
Hi,

I want greybox (http://www.orangoo.com/labs/GreyBox/) popups to be opened by clicking a <box/>.
There are two ways how one can open a link using greybox. The first one is using the rel-attribute of the HTML a-element.
The second one is calling one of the greybox functions directly, so I tried the following in my .xml file:

<box ... onClick="javascript:GB_showFullScreen('example','http://www.example.com');"/>

But using Firefox clicking the <box/> only changes document.href to a blank page containing the word "false". The URL in the location bar is "javascript:GB_showFullScreen('example','http://www.example.com')".
To my suprise it works well in the Safari browser (MacOSX). :rolleyes:

TIA

jaaaab
02-08-2008, 09:35 PM
Hi,

The idea sounds nice :)

I use greybox too but for HTML calls.

Did you checked the javascript console? is there some errors there?

If not try to download a firefox extension called Firebug to check if the original console is enough.

I had to deal with a javascript error last few days that made my firefox crash, as i was developping an application it drove me so bad...

Finnaly thanks to an extension like this i found the JS error was comming from a realplayer JS script which i had installed meanwhile.

I said goodbye Real and RAM format! Lol

++

watty
02-09-2008, 11:18 AM
firebug reports an error - I hope this screenshot helps...

jaaaab
02-09-2008, 02:37 PM
Obviously the error comes from grebybox (gb_script.js)

Try to modify the line in error

Maybe GB isn't suitable to open from a Flashmovie; you can try to ask the author.

++

watty
02-09-2008, 02:44 PM
As you can see here: http://orangoo.com/labs/greybox/greybox/gb_scripts.js
The script has only 436 lines of code. :confused:
BTW: the greybox link works in Opera and Safari, but not in Firefox and IE