Javascript command not working online

Javier Cayetano Rodríguez shared this problem 1 month ago
In Progress

I am using a button to copy some text to the clipboard. It executes the javascript sentence


ggbApplet.copyTextToClipboard(ggbApplet.getValueString("EjMostrarB"));

where EjMostrarB is the name of a GeoGebra Text Object. The code works perfectly on the installed version, but it does nothing online (running under windows 10, with chrome, firefox and edge).

This is the link to the applet: https://www.geogebra.org/m/qztwmfsu


The signalled button is supposed to copy the text inside the yellow rectangle to the clipboard, but it does not work online.

Could anyone help me solve it? Thank you.


fa54387d25cceb871218f83f37196d0a.

Comments (7)

photo
1

It's a problem with the $ $ in your text so we've changed that to # # just to make it load - please think of a different way to say it for now :)

photo
1

OK. Thank you. I did not know about the possibility of using # #. Now it works!

Thank you too for making the corresponding changes, and sorry for making you translate from Spanish.


It is strange that the $ $ are causing troubles here. It is something I often use, and it has always worked; for example here still does work: https://www.geogebra.org/m/whurxpyz

Maybe the problem happens when using it together with certain javascript commands?

photo
1

I did not know about the possibility of using # #
That doesn't work! It's just a change to make the page load :)

photo
photo
1

pero este simple boton en la version classic online no funciona

/4Px1tLW+NJccsAAAAASUVORK5CYII=

photo
1

Which browsers have you tried?

photo
photo
1

ahora mismo funciona bien en IE, opera y en chrome

no funciona en firefox quantum 67.0.4


todos estos navegadores los ejecuto bajo windows7

photo
1

se repitio el envio

© 2019 International GeoGebra Institute