The fastest way to open a Jclic project is through an embedded applet in a web page. A web page can be created while a JClic project is being edited through the JClic author. This solution can be only used if we jointly publish the page and the JClic project.
To run a JClic project already published in Internet just follow the steps described below:
First, we must have the URL (also known as internet address) of the jclic.zip file that contains the project. At the zonaClic, the URL is shown at the bottom left of the project boxes
For example, the JClic demo activities URL is:
It’s not mandatory to store the project at zonaClic, it can be located in any other web.
To run the applet, we will call for a special page at the server that generates the code from the parameters provided. It’s this:
Then, we have to edit the expression generated. We should substitute xxx by the file jclic.zip and yy by the two-letter code for the language we want to use with JClic. The English code is "en".
So, the call to open a web page in English using the JClic demo must be:
In addition, we could add more parameters to the call. To add a parameter first we must write the symbol & followed by the parameter name, the equal symbol and its value. The most useful parameters are:
To show the web title. The blank spaces must be replaced by “+”, and code the symbols with “%”. For example: &title=Demo+activities
To set the visual aspect. The standard values are @orange.xml, @blue.xml, @green.xml and @simple.xml. It’s required to include an @ before the noun. For example: &email@example.com
To set the address to another web page where the browser will go when the JClic reaches a place with the command "Exit". This command can be set in a cell with active content or from a sequence element. For example: &exitUrl=http://www.xtec.cat
We will have the URL ready with all these parameters. Then, we can create desktop shortcuts, an embedded object in a presentation program, a Flash animation or a link from another webpage.