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
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