Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #21613 > unrolled thread

JUL - The JavaScript UI Language

Started byzone.builder@live.com
First post2013-10-15 06:21 -0700
Last post2013-10-21 21:58 -0700
Articles 4 — 4 participants

Back to article view | Back to comp.lang.javascript


Contents

  JUL - The JavaScript UI Language zone.builder@live.com - 2013-10-15 06:21 -0700
    Re: JUL - The JavaScript UI Language JJ <duh@nah.meh> - 2013-10-16 04:45 +0700
    Re: JUL - The JavaScript UI Language "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-10-21 21:23 -0700
    Re: JUL - The JavaScript UI Language dhtml <dhtmlkitchen@gmail.com> - 2013-10-21 21:58 -0700

#21613 — JUL - The JavaScript UI Language

Fromzone.builder@live.com
Date2013-10-15 06:21 -0700
SubjectJUL - The JavaScript UI Language
Message-ID<c256877d-7ca6-45a2-9db7-a6ea45558e55@googlegroups.com>
  = About =

The JavaScript UI Language (JUL) is a configuration and instantiation module for the JavaScript frameworks. It can be used with any framework that accepts a configuration object as a constructor parameter, or with a custom factory for the other frameworks.

JUL parses a tree of configuration objects, and creates the run-time components in the expected order and membership. For the most uses, after this step, you will have your application's user interface up and running.

 = Features =

  * implements programming by configuration for event-driven UI JavaScript frameworks
  * top-down and bottom-up creation of the component tree
  * converts a DOM XML document into a configuration tree
  * supports configuration inheritance and tparser meta-information inside a configuration node
  * fully configurable parsing and ability to map node IDs as component instances
  * serialization of the configuration tree to JavaScript or JSON source code

 = URL =

http://jul-javascript.googlecode.com/

[toc] | [next] | [standalone]


#21614

FromJJ <duh@nah.meh>
Date2013-10-16 04:45 +0700
Message-ID<1ogyb3tkpictt.h0sf1t46kjvv$.dlg@40tude.net>
In reply to#21613
On Tue, 15 Oct 2013 06:21:08 -0700 (PDT), zone.builder@live.com wrote:
>   = About =
> 
> The JavaScript UI Language (JUL) is a configuration and instantiation module for the JavaScript frameworks. It can be used with any framework that accepts a configuration object as a constructor parameter, or with a custom factory for the other frameworks.
> 
> JUL parses a tree of configuration objects, and creates the run-time components in the expected order and membership. For the most uses, after this step, you will have your application's user interface up and running.
> 
>  = Features =
> 
>   * implements programming by configuration for event-driven UI JavaScript frameworks
>   * top-down and bottom-up creation of the component tree
>   * converts a DOM XML document into a configuration tree
>   * supports configuration inheritance and tparser meta-information inside a configuration node
>   * fully configurable parsing and ability to map node IDs as component instances
>   * serialization of the configuration tree to JavaScript or JSON source code
> 
>  = URL =
> 
> http://jul-javascript.googlecode.com/

If you want people to adopt it, write a proper documentations with complete
library specifications, instead of relying on examples and forum Q&A.

[toc] | [prev] | [next] | [standalone]


#21686

From"Michael Haufe (TNO)" <tno@thenewobjective.com>
Date2013-10-21 21:23 -0700
Message-ID<dac2f236-bf97-4da3-9ee5-46d7c355facc@googlegroups.com>
In reply to#21613
On Tuesday, October 15, 2013 8:21:08 AM UTC-5, zone.b...@live.com wrote:
> = About =
> 
> The JavaScript UI Language (JUL) is a configuration and instantiation module for the JavaScript frameworks. It can be used with any framework that accepts a configuration object as a constructor parameter, or with a custom factory for the other frameworks.

Automagically?

> JUL parses a tree of configuration objects, and creates the run-time components in the expected order and membership.

So from a traditionally implementation-dependent ordering of of object members it will derive the "expected order"? 

> For the most uses, after this step, you will have your application's user interface up and running.

Do you have one of the exceptional cases you can share?

>  = Features =
>
>   * implements programming by configuration for event-driven UI JavaScript frameworks
> 
>   * top-down and bottom-up creation of the component tree

I assume this means you can combine object literals however you want, and they'll be interpreted by the framework.
 
>   * converts a DOM XML document into a configuration tree

Can it convert a configuration tree back into an XML document, or is this a one way trip?

>   * supports configuration inheritance and tparser meta-information inside a configuration node

So it can parse an arbitrary XML document into a "configuration tree" while still having reserved object members without collision? While still turning that document into a object literal representation that can create instances of UI elements that can be consumed by other frameworks? Tell me more...

>   * fully configurable parsing and ability to map node IDs as component instances

Wait, is this XUL only?
 
>   * serialization of the configuration tree to JavaScript or JSON source code

But not the format it was parsed from?

>  = URL =
> 
> http://jul-javascript.googlecode.com/

Articles and tutorials link sends me to a google search...

The "forum" link has one post... and it is a clone of content.

The API link has content though. I am still curious to how this interacts with other frameworks (as they haven't been enumerated that I can see). Are you dictating to those frameworks how to create UI components?

Reading the source code was a little more enlightening:

https://googledrive.com/host/0B9zLzpZ-06uFY1A2OG5Dd0k3TW8/docs/symbols/src/jul.js.html

[toc] | [prev] | [next] | [standalone]


#21687

Fromdhtml <dhtmlkitchen@gmail.com>
Date2013-10-21 21:58 -0700
Message-ID<7c2fe1d6-2876-4590-994d-060f7dbd5c50@googlegroups.com>
In reply to#21613
On Tuesday, October 15, 2013 6:21:08 AM UTC-7, zone.b...@live.com wrote:
> = About =
> 
> 
> 
> The JavaScript UI Language (JUL) is a configuration and instantiation module for the JavaScript frameworks. It can be used with any framework that accepts a configuration object as a constructor parameter, or with a custom factory for the other frameworks.
> 
> 
> 
> JUL parses a tree of configuration objects, and creates the run-time components in the expected order and membership. For the most uses, after this step, you will have your application's user interface up and running.
> 
> 
> 
>  = Features =
> 
> 
> 
>   * implements programming by configuration for event-driven UI JavaScript frameworks
> 
>   * top-down and bottom-up creation of the component tree
> 
>   * converts a DOM XML document into a configuration tree
> 
>   * supports configuration inheritance and tparser meta-information inside a configuration node
> 
>   * fully configurable parsing and ability to map node IDs as component instances
> 
>   * serialization of the configuration tree to JavaScript or JSON source code
> 
> 
Sounds good. I see where you're going with that.

A couple of quick comments on the source code: 

Some of the functions are really long. Have you considered breaking them up into smaller functions? 

JUL is declared without var. Instead, var should be used. Because if var is omitted, there will be errors in versions in IE when there is an element with the same ID.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web