You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 11th 2012, 2:37pm

shadowbox - calling from krpano

Hello all,

I am trying to open a shadowbox that pops up above krpano. In the forum and outside I did not find any solution that really works.
Actually I have it running 50%, means the shadowbox opens! but does not load: in my case a html page into it.

The strange thing about is, that it works on iPad Safari? but not on PC browsers ...

The code in the parent html file:

Source code

1
2
3
4
5
6
    			function openShadowbox(url, player, title){    		Shadowbox.open({        		content:    url,       			player:     player,       			title:      title		    });}        
	Shadowbox.init({
		language:   "es",
		players:    ['html', 'iframe']
		});
	



the code in my xml to call the shadowbox:

Source code

1
		onclick="js(openShadowbox('http://www.google.com', 'iframe', 'title'));"



I also tried to change "iframe" to "html" or changed the doc type of the html document... nothing helps.

The general Idea behind is that I want to open html info above the the pano. The textfield is too restricted for this. Also it should work on iOS as well... where also the shadowbox is bad as it does not support scrolling...
So if anybody has any idea with showing some code will be very welcome *smile* .

Thanks
Holger

2

Thursday, January 12th 2012, 1:48pm

I will reply myself:

taking away the quotation marks 'xxx' solves the problem on desktop browsers...

Source code

1
onclick="js(openShadowbox(http://www.google.com, iframe, title));"


Thanks for this to Iceman fx! ;-)

Tuur

Master

Posts: 2,342

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Thursday, March 8th 2012, 9:43pm

great that shadowbox!!

1 problem for now:

on the mac the background fades away to alpha 0.5 but on the pc it is getting pitch black.
The content is there and works though.

I would like the background on the pc also going alpha 0.5 - ish..

Somebody?

Cheers

Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Mar 8th 2012, 10:26pm)


Tuur

Master

Posts: 2,342

Location: Netherlands

Occupation: Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

4

Thursday, March 8th 2012, 10:29pm

bump..test.

mmm when i post this it is not gonna show in the forum at the top.. how come??

This post has been edited 1 times, last edit by "Tuur" (Mar 9th 2012, 3:54pm)


Posts: 48

Location: Bielefeld

Occupation: Fotograf

  • Send private message

5

Sunday, March 18th 2012, 6:21pm

hello,

a question, you can enter the show at the shadowbox a fixed size?

I use Shadowbox to display a form, but that is about 500px X 300px and Shadowbox is always much larger. I've already tried a lot, but somehow does not work.

regards