Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versions antigues dels fitxers ggb, JavaScript i altres coses #12

Open
dobrador opened this issue Mar 6, 2013 · 1 comment
Open

Versions antigues dels fitxers ggb, JavaScript i altres coses #12

dobrador opened this issue Mar 6, 2013 · 1 comment

Comments

@dobrador
Copy link

dobrador commented Mar 6, 2013

Hem detectat alguna situació i novetat en el desenvolupament de GeoGebra que podria tenir repercussió en construccions per utilitzar-les en el mòdul d'activitat tipus GeoGebra per a Moodle.

A la pàgina http://www.geogebratube.org/material/show/id/11783 hi ha una construcció guiada molt interessant per a ser incrustada com activitat GeoGebra al Moodle. En data març 2013 la versió penjada no funciona. Miro d’explicar els motius:

La construcció està feta amb alguna versió de GeoGebra que no és l’actual.
Veurem com saber quina és la versió amb la que es va crear. ()
Donada una adreça del GeoGebraTube amb un material, és interessant saber on es desa el ggb associat (__).
Estaria bé (si es pot) implementar la possibilitat al mòdul de no haver de tenir els fitxers ggb en local, sinó que es pugui apuntar directament a la URL i que sigui el GeoGebraTube qui assegura que funciona OK.
També es podria pensar en l’opció de lligar l’activitat amb un recusr HTML5
Tornant a l’exemple en qüestió: si us el descarregueu en local i l’intenteu obrir, es produeixen errades i no es pot accedir amb botó dret a Propietats d’objectes. Per tant no se sap com arreglar les errades que apareixen...
Veurem que això és degut a comandaments escrits en català al JavaScript (
**)

Succeeix sovint que construccions fetes amb versions antigues, si en tenim el fitxer ggb en local, poden deixar de funcionar degut als constants canvis de JAVA.
L’equip de GeoGebra treballa per evitar els fitxers ggb en local degut als problemes de JAVA, i anar tendint cap a exportacions en HTML5
Vegeu entrada al fòrum “Export to HTML for offline and export dialogue"
https://www.geogebra.org/forum/viewtopic.php?f=8&p=105982#p105982
“it is very likely that offline worksheets won't work anymore at some point in the future because some old GeoGebra version XYZ will become incompatible with some new technology on some new computer/browser/tablet.”
“Concerning offline use: sure, we want that too but it's getting more tricky. Offline Java Applets are useless for the future (see above), so we plan to have offline HTML5 applets very soon exported from GeoGebraTube. Work on this is already under way and will appear soon on GeoGebraTube: https://dev.geogebra.org/trac/ticket/3010”

(*) Si s’accedeix a la construcció i es mira el codi font, es pot veure que el GeoGebraTube sap recordar amb quina versió es va fer, per tal d’assegurar que la versió funciona bé:
<applet code="geogebra.GeoGebraApplet" codebase="http://jars.geogebra.org/webstart/4.0/unsigned" ...>

http://www.geogebratube.org/material/show/id/mmmmmm té el corresponent arxiu ggb desat a http://www.geogebratube.org/material/download/format/file/id/mmmmmm.ggb
(*) Entrada als fòrums “JavaScript commands in 4.2” a l’adreça http://www.geogebra.org/forum/viewtopic.php?f=8&t=29734
“Since 4.2 only English (US) commands will work in Execute and ggbApplet.evalCommand()”
També he investigat el següent tema:
Si descarrego l’arxiu http://www.geogebratube.org/material/show/id/11783 fet amb una versió <param name="cache_version" value="4.0.41.0,...> , el pujo al meu perfil del GeoGebraTube , el puc modificar online a la mateixa plataforma de GeoGebraTube, el puc desar, però es manté la versió <param name="cache_version" value="4.0.41.0,...> , jo sospitava que es desaria amb la versió actual i no!. Això deu voler dir que el GeoGebraTube sap “executar” els fitxers ubicats amb la corresponent versió.

@TWINGSISTER
Copy link

I have a similar problem. I am developing this
https://github.com/TWINGSISTER/GeogebraMultilanguageTranslator/blob/main/README.md
and would be nice to have my ggb to point some JS files on the Moodle server
Presently the code in Geogebra uses a URI

function include(file,entry) {
// debugger;
var script = document.createElement('script');
script.src = file;
script.type = 'text/javascript';
script.defer = true;

document.getElementsByTagName('head').item(0).appendChild(script);

script.onload = new Function(entry)
}

include("https://twingsister.github.io/GeogebraMultilanguageTranslator/Clicktrans3.js","ClickggbOnInit();");

but in another version I use

include("../../../Clicktrans3.js", "ClickggbOnInit()");

the relative path is from where I put the index.html that embeds the GGB applet. So the question is: how does your tool starts GGB and where one can put JS to be accessed in the second way with a relative path on the server.

If someone is interested in this multilanguage package please note that is still buggy. Feel free to reuse it in your applications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants