Widget - This manual page describe how to add a simple widget
DESCRIPTION
In Extenso, you can add a widget to a page. You can also move the widget within the page.
They are already a lot of widgets available on your website.
But you might want to create new widget for yourself or your client.
This video demonstrate how to create a very simple widget that
will display the date the widget was created and the current date and time.
EXERCICES
Create a widget of your own.
Create a widget to convert celsius to fahrenheit with the formula:
celcius * 9.0/5.0 + 32.0
You can do this exercice using jquery or you can add a form to post the current page. In that case you can get the value of a named element with the following code:
If you have <input type="text" name="celcius"> you can get the value with:
c = cgidata();
c.celcius;
The following video show how to implement this widget
Can you modify the widget so that instead of loading all the page, you only reload the widget using jQuery and Ajax to convert the celcius.