Hi Cerabox,
Firstly, thanks for making such a great product.. good examples, documentation..etc, very much appreciated.
I am trying to create a CeraBox on the fly, and add some content - looking at this support forum, I could only find one example of creating a box on the fly but setting the internal content just doesn't seem to work.
My code:
var el = new Element('a',{'href':'#test'}).cerabox({displayTitle: false});
CeraBoxWindow.setContent('hello world');
el.fireEvent('click');
CeraBoxWindow.setContent('hello world');
.. I tried setting the 'setContent' before and after the window opened .. just because I've tried everything and nothing seems to work.
Ideally I'd expect some kind of functionality like:
var box = new CeraBox( null, {} );
box.setContent('hello world');
box.openWindow();
^ .. ?
Any help, most appreciated.
Andree