Jam.py documentation

load

load(callback)

domain: client

language: javascript

class Task

Description

Load method loads the project task tree from the server and initilizes it.

When a Web browser loads the jam.js library in index.html file, jam.js creates an empty task object. The load method loads the project task tree from the server and initilizes it (see workflow). After that the application triggers on_page_loaded event.

Example

The following code is from the project index.html file.

<script src="/jam/js/jam.js"></script>
<script src="/js/events.js"></script>

<script>
$(document).ready(function(){
    task.load();
  });
</script>