Sie sind nicht angemeldet.

1

Mittwoch, 11. Januar 2012, 14:37

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:

Quellcode

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:

Quellcode

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

Donnerstag, 12. Januar 2012, 13:48

I will reply myself:

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

Quellcode

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


Thanks for this to Iceman fx! ;-)

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

3

Donnerstag, 8. März 2012, 21:43

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*

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (8. März 2012, 22:26)


Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Donnerstag, 8. März 2012, 22:29

bump..test.

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

Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von »Tuur« (9. März 2012, 15:54)


Pixelschupse

Anfänger

Beiträge: 48

Wohnort: Bielefeld

Beruf: Fotograf

  • Nachricht senden

5

Sonntag, 18. März 2012, 18:21

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