Goto main content

tutorial_widget1

This manual page describe how to add a simple widget

Tutorial-Widget

NAME

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.

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;

     
  • 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.

SEE ALSO

MODIFICATIONS

1.0 2015-05-19 22:50:14 laplante@sednove.com

Edit

© 2024 extenso Inc. All rights reserved.