Start a new topic

Javascript Questions

Where can I find documentation on using Javascript in Kotobee Author?  Especially things like detecting clicks on images (used as buttons) and other input methods.


2 people have this question

Well the only section that discusses Javascript is here:

Since the ebook chapters are HTML based, they can take any javascript functions you like (as well as HTML and CSS). So it's a very wide scope for us to cover in our documentation. You can refer to for functions to detect image clicks, etc.

This help article may be useful for you as a starting step to use Javascript in Kotobee Author:


I have a similar issue with questions but more complicated I suppose

I want to ask: can I handle questions by ID? I mean what if I will have capture result of the test and display it on my own faction.

In this case Tymoteusz, you can build your own question component (it's simple javascript really). You're not obliged to use ours. Even if you use ours, you can attach a javascript event listener to the Submit button, and that was will be able to query through the questions to know the user's answer to each. Does it make sense?


yes, it makes sense. I want to use your mechanism cause I have a lot of questions and those questions will be written by a person not familiar with java at all.

Can you explain how to "attach a javascript event listener to the Submit button" in your mechanism?

Sure. I've attached a sample for you. Basically, the function would look like this:

function forceSubmit(){
  var elems = document.getElementsByClassName("exam");
    var btns = elems[0].getElementsByClassName("ki-mcq");
  return false;

Good luck!

1 person likes this


thanks for this example but can I find a description of automatic questions builder implemented in Kotabee to call it by my own functions?

The sample I have already attached shows you how to call your own functions, which will trigger the Kotobee question component to submit. Did you download and open the KPUB2?

1 person likes this


yes but did names used in the script are permanent or just for this sample?

eg Class Name "exam" or Class Name "ki-mcq"

are there any other useful class names in question building module?

ki-mcq is permanenet (you will not need to change it). However, "exam" is dynamic, and it depends on the class name that you have given your question component. The screenshow below will clarify:

You do not need to do anything else but change "exam" to the class name of your specific question component.

White label SEO is a business agreement between two parties in which an SEO reseller up-sells the SEO services offered by a SEO service provider, by not revealing the identity of the provider. In many cases, the SEO reseller is an Internet marketing (IM) company. Here, there will not be any contact between the SEO provider and the client, only the SEO reseller deals with the client. marketing1on1 seo


An impressive share, I just given this onto a colleague who was doing a little bit evaluation on this. And he in reality ordered me breakfast due to the fact I discovered it for

Brilliant answer, where did you get all this experience buddy?


Apollo Tv Apk

yes i think so slot1234

Login or Signup to post a comment