Inicio › Forums › Desarrolladores / Desenvolupadors / Garatzaileak / Desenvolvedores / Developers › Exe with new question type
Tagged: update js file
This topic contains 3 respuestas, has 3 voices, and was last updated by HaiAnhJumi Hace 5 años, 9 meses.
-
AuthorEntradas
-
4 marzo, 2019 at 7:13 #30655
Hi all,
I’m the new at eXe. For my studing, I’m trying to develop the eXe with adding new question types for student test. I’m make stuck at editing common.js file and rebuilding eXe app but that file is not really updated. Can someone help me, thanks?
-
4 marzo, 2019 at 13:32 #30657
Go to the folder where eXe’s installed and look for this directory: /scripts/idevices/
There you’ll find some iDevices. Those iDevices have been created using JavaScript instead of Python. You can create new iDevices adding them to that folder. Anything in the “export” folder will be exported. You can create a form to edit the iDevice using the JavaScript files of the “edition” folder.
Check the “example-idevice”. Just copy it, edit the name of your iDevice in the config.xml file and restart eXe.
There’s some documentation here (in Spanish only for the moment…).
I hope it helps.
We’d love to see your activities. Please share us with us. They might be interesting for other users.
Thanks!
-
5 marzo, 2019 at 16:18 #30661
Thanks for your quick reply,
Currently, I created new iDevices by adding new exampleblock.py and exampleidevice.py file following to the current iDevices. I edited renderEdit, renderPreview, renderView method and add some new methods to element.py to render content what I want.
I’m making stuck at adding new function to check result of student test. Like showFeedback js function in common.js, I really want to implement the new function like that for my new question type idevice.
May be I will change to use adding new js file in /scripts/idevices/ like what you said.
Thanks!
-
14 marzo, 2019 at 8:20 #30705
I also learned about eXe, looking forward to exchanging experiences and knowledge with everyone
-
AuthorEntradas
You must be logged in to reply to this topic.