How to get the name of an embedded applet ?

laurentabbal shared this question 1 month ago
Answered

Hi

When I embed an applet (thanks to his id), is there a way to get his name and display it ?

Comments (5)

photo
1

You set it yourself when you embed. What are you trying to do? Maybe you can post an example.


https://wiki.geogebra.org/e...

photo
1

Hi

Thanks for your answer.

I would like to be able to get the name of an applet automatically when I embed this applet thanks to his "material_id".

With an API, usually, we just need to have the id of the element and then we can get all details of this element (name, description, creation date, author...). We can do that with videos on Youtube, with projects on Scratch... So I was wondering if it is possible to do that also with Geogebra.

photo
1

When you have an online applet you want to embed, of course you see the id in the manu bar.

To embed you have to click on Details -> Share -> Embed to get the full html code of the applet in which you can find some details, but indeed not all you mentioned.

But when you have an embedded applet, you can see the id in the code of it, and filling in this id in search you can find back the original on the materials platform of GG. Then clicking in Details, you can find all the details you mentioned.

chris

photo
1

Hi

With Details>Share>Embed, you can embed the applet with iframe. But, I try to embed applets with Javascript (I should have mentioned it before) : https://wiki.geogebra.org/e...

With other websites (like Scratch, Youtube...), it is possible to embed elements with Javascript or API from the unique id of the element and get automatically other details like name, description, creation date... (with a json response for exemple).

But it seems that it is not possible to do it with Geogebra. Actually, embedding applets, activities or books is quite complicated. Javascript works only with applets. And the only solution for activities or book is iframes. Unfortunately, the result is not really neat with iframes.

photo
© 2019 International GeoGebra Institute