Comparing versions 23 and 24.

HowJdaWorks

Obviously, this page is being worked on... BIG TIME

Whatever this JDA thing is... How does it work?

It's a 5 step process

  1. Give your Web page a UUID
  2. Get aJS-Star micro-kernel(JDA micro-kernel) running inside your Web page
  3. Add some componentsinfotrons (JDA components)
  4. Wire the componentsinfotrons up
  5. Repeat 3 - 4

Give your Web page a UUID

<meta name="uuid" content="YOUR_UUID_GOES_HERE" />

Click here to generate a new one

Get aJS-Star (JDA micro-kernel ) running inside your Web page

<script type="text/css" href="http://constructbl.es/_ukernel/js/api_key=YOUR_API_KEY_HERE"></script>

If you don't have an API key, go here to get one

Add some infotrons

infotrons can be found by viewing other Web pages and locating <div> tags with the impl attribute. Here's an example infotroninfotron:

<div id="YOUR_ID_HERE"

       impl="UUID\_OF\_INFOTRON\_HERE"
       script="URL\_OF\_SCRIPT\_HERE">

</div>

You can copy+paste that into your own Web page. If you travel to this page, you'll find a list of infotrons included as part of the standard distro that you can use.

Wire the components up

infotrons, unlike other Web widgets, aren't discrete components. They are meant to take part in a larger composition. You can wire one or more infotrons together by using the connections attribute. The following is an example:

If you travel to this page, you'll find how some of the demo HTML blueprints are spec'ed to take advantage of the compositional aspect of JDA.

Repeat 3 - 4

  1. Get an API key from http://constructabl.es/ (coming soon)

  2. Get a UUID from http://constructabl.es/api/uuid_generator/ (coming soon)

  3. Inside the <head> tag of your HTML file add the following lines of HTML

&lt;meta name="uuid" content="UUID_GOES_HERE" /> &lt;script language="javascript"

   src="http://constructabl.es/_js/star.debug/api_key=YOUR_API_KEY_GOES_HERE"></script>

Your Web page is now officially a JDA Blueprint!

Adding infotrons

  1. Type in a <div> tag for each of the infotron you want to add to your Web page.

    <div id="mybutton" impl="~011C8D2C7B8A574a0e9F1B957E4A172D07" script="../extras.beta/Button.js" properties="'click_value':{'name': 'New Note', 'text_content':'Hello World'}" connections="'click_value_out':[['stickies', 'dispense_request_in']]"> <button>Click to dispense a sticky note</button> </div>

Connecting infotrons

Here we have two infotrons, defined from one blueprint each, which are wired together by defining the connections attribute on the first infotron.

In the connecitons attribute, the first time is one of the current infotrons output terminals and the second item is a combination of destinaton infotron id/DOM node and input terminal.

A more complex example is shown in the illustration below;

openmap view

Additional text that need to be cleaned up and incorporated

  • Includes an asynchronous message-passing microkernel called "JS-Star" (pronounced Jay-Es Star)

  • An HTML file that contains one or more infotrons is called a Blueprint

  • A Javascript file that speficies the implementation of an infotron is also called a Blueprint
  • Each JDA component is called an Infotron.
  • Infotrons can be connected to one another via channels
  • Infotrons can pass messages through the channels
  • The Javascript file which defines the behavior of an infotron is called a Blueprint

  • An infotron is defined in an ordinary html element, by adding the 'impl' attribute. Js-Star will then find and create the infotron after the page has loaded (by loading the js blueprint class).

  • Each Infotron has lists of input and output terminals. infotron connections

  • Each input terminal (which is just a string defining its name) has a handler function specificed which must be defined inside the Infotron (Or rather its blueprint class).

  • Each output terminal can be connected to another Infotrons input terminal in the Infotron definition (by adding a 'connections' attribute to the html element).

  • Each Infotron definition can specify properties to initialize the Infotron with, when started, by adding a 'properties' attribute.

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 24. about 1 year by slim
  2. 23. about 1 year by slim
  3. 22. about 1 year by slim
  4. 21. about 1 year by slim
  5. 20. about 1 year by slim
  6. 19. about 1 year by slim
  7. 18. about 1 year by slim
  8. 17. about 1 year by slim
  9. 16. about 1 year by slim
  10. 15. about 1 year by slim
  11. 14. about 1 year by slim
  12. 13. about 1 year by slim
  13. 12. about 1 year by xexamedes
  14. 11. about 1 year by xexamedes
  15. 10. about 1 year by xexamedes
  16. 9. about 1 year by xexamedes
  17. 8. about 1 year by xexamedes
  18. 7. about 1 year by xexamedes
  19. 6. about 1 year by xexamedes
  20. 5. about 1 year by xexamedes
  21. 4. about 1 year by xexamedes
  22. 3. about 1 year by xexamedes
  23. 2. about 1 year by xexamedes
  24. 1. about 1 year by xexamedes