andreasplesch / x_ite_dom

link x_ite to the DOM
http://andreasplesch.github.io/x_ite_dom/index.xhtml
MIT License
6 stars 0 forks source link

multiple browsers #27

Closed create3000 closed 7 years ago

create3000 commented 7 years ago

Have tested the master version of cobwe_dom with the example from http://www.create3000.de/titania/download/ which uses multple X3DCanvas elements within the dom, but it does not work.

I get the following error on line 27:

TypeError: this.browser is undefined cobweb_dom.js:21:27

andreasplesch commented 7 years ago

https://andreasplesch.github.io/cobweb_dom/tests/cobweb_multiview.xhtml

still works. Perhaps the cycle script somehow interferes?

andreasplesch commented 7 years ago

I could reproduce here: https://rawgit.com/andreasplesch/cobweb_dom/a4d632cfe0681360924828f16a12ecab9ea3737a/tests/cycle.xhtml I think it has to do how cycle is loaded before cobweb_dom which has to wait for cobweb.

andreasplesch commented 7 years ago

X3D.getBrowser(element) does not return a browser in cycle.xhtml but it does on multiview.xhtml

andreasplesch commented 7 years ago

Somehow the X3D callback is called before browsers were created.

andreasplesch commented 7 years ago

https://rawgit.com/andreasplesch/cobweb_dom/d7a659e0b4b5a8be3f79e0a35c72280c2f6c2f60/tests/cycle.xhtml has the cycle2 script disabled and it works here.

andreasplesch commented 7 years ago

http://kenwheeler.github.io/slick/ as slideshow works better:

https://rawgit.com/andreasplesch/cobweb_dom/2819cb108142f6d624632600d1c61a724982e8d2/tests/cycle.xhtml

create3000 commented 7 years ago

It's with jQuery!

Works fine.

andreasplesch commented 7 years ago

yeah, somehow the cycle2 plugin interfered. It may have to do with require(?). I see you switched to slick and figured out the styling. Looks good.