Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > WebsitePainter
Website painter and Coopercube

michaelb
Registered User
Quote
2012-06-25 17:03:53

Greetings

We have posted this also in the coopercube forum , we post it here also hoping for some answer on this.

On WebsitePainter we put 2 html code boxes.

The code for each one is exactly what coopercube writes in the html file when exporting to webgl.

Now we did a little trick and created 2 copperlichtdata folders and changed in the html code the 3darea to 3darea 1 and 2. In the copperlichtdata (each folder) is a different ccbjs.

This has as result 2 coopercube opengl scenes loading in one html page, with different 3d scenes showing.

Now what we want to do is this

In WebsitePainter we want to click on a combo box and hide and unhide the 3dareas at will!!!

Can you help please??

P.S

In few words imagine photoshop layers one stacked on the other on the exact same position, and we want to hide and unhide them at will.

Best

Michael.


michaelb
Registered User
Quote
2012-06-25 17:09:49

Another idea is to call each webgl (make it visible ) content via a javascript were it says

javascript:alert('hello!');

but we dont know what to write there!!!!


niko
Moderator
Quote
2012-06-25 20:42:36

Yes, you could hide any webgl containter using JavaScript, for example like this:
yourWebglElement.style.display = 'none';

That's it :)


michaelb
Registered User
Quote
2012-06-25 20:53:15

wrote:
Yes, you could hide any webgl containter using JavaScript, for example like this:
yourWebglElement.style.display = 'none';

That's it :)



YOU ROCK NIKO thanks once again.

Now can you tell me please how i am going to unhide this again?

Also were can i find a reference document with those commands, if there are examples also they are most welcome.


niko
Moderator
Quote
2012-06-25 21:37:45

Try
yourWebglElement.style.display = 'block';

this should do the trick.
Reference Document is the HTML DOM, and the CSS by W3C you'll find lots of documentation for this on the internet.


michaelb
Registered User
Quote
2012-06-25 22:27:00

Thank you very very much Niko, i really appreciate all the help you are giving us, we will try our best from inside of our work to get Coopercube and Website painter more closely to the public.

We will try your commands and will come back.

Best

Michael.


michaelb
Registered User
Quote
2012-06-26 15:48:51

Niko yourWebglElement.style.display = 'none'; for hidding worked like a charm.

Unfortunately yourWebglElement.style.display = 'block'; did not.

Any other ideas / proposals?

Best

Michael.


niko
Moderator
Quote
2012-06-27 07:43:31

If you take a look at the CopperCube page (http://www.ambiera.com/coppercub...), there is a link 'Show older news'. It works exactly like that. Clicking a second time onto the link makes it set to 'none', and it disappears again.
Difficult to say what is not working for you without looking at it. Maybe you try again with a div tag wrapped around your webgl element. Or maybe there is some error in your code. Take a look at the javascript console, maybe you get an error?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "?nternational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact