Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  idea: use extjs with magic components

Guest
Posted: Thu Aug 07, 2008 3:04 pm Reply with quote
Guest
I just had a wonderful idea: use extjs with the magic components.
Ajaxify (easier to say than xhrify), the whole magic shebang, to
modify tables.

Offer some extjs features as an option tuple in
erlyweb:create_component.

See these demos:

http://extjs.com/explorer/
http://extjs.com/deploy/dev/examples/samples.html

What I like the most are the following:

http://extjs.com/deploy/dev/examples/grid/edit-grid.html
http://extjs.com/deploy/dev/examples/grid/from-markup.html

I'm planning on using extjs for my blogging application, and I've
worked with extjs before.
I'd like to spearhead this mini-project _with_ someone else, if
anyone's interested. Currently, I'm suffering from projecti-itis. It
is preventing me to handle another one alone.
The cool thing about extjs is that it can be used on top of existing
markup.
So the only tricky part is writing the glue code for the markup and
the ajax front/backend.
Somehow I need to create some kind of generic extjs template for the
<head> where I can dump <script type="text/javascript" src="...">
stuff.

Extjs is licensed under gpl. Beware. Hope that isn't a problem.
Yariv holds the copyright. Erlyweb's MIT, externals BSD.

I was able to infer licensing info from this post:
http://www.mail-archive.com/erlyweb@googlegroups.com/msg00040.html

What do you guys think?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
jeffm
Posted: Fri Aug 08, 2008 12:15 pm Reply with quote
User Joined: 29 Sep 2008 Posts: 43
Have you looked at any other frameworks? I know of

* http://developer.yahoo.com/yui/
* http://www.dojotoolkit.org/
* http://script.aculo.us/

and there are many others. Ignoring whether this is a good or bad idea
for erlyweb to recommend one of these client side frameworks. Have you
looked at any of these other frameworks? What did you like/dislike about
them?

It may be a good idea to produce what you are talking about as a
completely separate add-on to avoid tying erlyweb to any particular
framework and to make it easier to remove after development work is
complete.

Jeff.

Buggaboo wrote:
> I just had a wonderful idea: use extjs with the magic components.
> Ajaxify (easier to say than xhrify), the whole magic shebang, to
> modify tables.
>
> Offer some extjs features as an option tuple in
> erlyweb:create_component.
>
> See these demos:
>
> http://extjs.com/explorer/
> http://extjs.com/deploy/dev/examples/samples.html
>
> What I like the most are the following:
>
> http://extjs.com/deploy/dev/examples/grid/edit-grid.html
> http://extjs.com/deploy/dev/examples/grid/from-markup.html
>
> I'm planning on using extjs for my blogging application, and I've
> worked with extjs before.
> I'd like to spearhead this mini-project _with_ someone else, if
> anyone's interested. Currently, I'm suffering from projecti-itis. It
> is preventing me to handle another one alone.
> The cool thing about extjs is that it can be used on top of existing
> markup.
> So the only tricky part is writing the glue code for the markup and
> the ajax front/backend.
> Somehow I need to create some kind of generic extjs template for the
> <head> where I can dump <script type="text/javascript" src="...">
> stuff.
>
> Extjs is licensed under gpl. Beware. Hope that isn't a problem.
> Yariv holds the copyright. Erlyweb's MIT, externals BSD.
>
> I was able to infer licensing info from this post:
> http://www.mail-archive.com/erlyweb@googlegroups.com/msg00040.html
>
> What do you guys think?
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
View user's profile Send private message
dmitriid
Posted: Fri Aug 08, 2008 2:21 pm Reply with quote
User Joined: 17 Aug 2006 Posts: 213
On Aug 7, 2008, at 6:04 PM, Buggaboo wrote:

>
> I just had a wonderful idea: use extjs with the magic components.
> Ajaxify (easier to say than xhrify), the whole magic shebang, to
> modify tables.

Extjs has problems with licensing. GPL may be okay with ome
developers, but it prohibits using third-party components when you
purchase a commercial license. Issue with third-party components has
not yet been clarified: http://extjs.com/forum/showthread.php?t=33891

I would stay away from extjs even though it is a great library Sad

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
View user's profile Send private message
Guest
Posted: Fri Aug 08, 2008 9:37 pm Reply with quote
Guest
Heyhey,

--Jeff--

I have nothing against other frameworks. I'm only familiar with
mootools and extjs. I know for a fact that extjs could be used
together with jQuery, yui, prototype etc. I've worked with extjs in
the past and I already knew which features they got that we could use.
I love new-tech, but I hate reinventing stuff (unless the thing being
reinvented has advantages over the old...).

I'll start hacking this and share code once I pick a nice lib to do
the job.

Bolting on these features directly on erlyweb will not be a good idea,
since one of Yariv's goals was to sell erlang to websavvy peeps.
Selling framework/lib along with erlyweb might detract from the
original idea.

A few modules containing xhr/json stuff... etc. might be easier to
maintain. A reimplementation of create_components containing extra
options with relation to xhr and json stuff... might be handy.

--Dmitrii--

Too bad about the unresolved issues with their licensing. I did some
research on yui, it seems nice. Some extjs founders actually came from
the yui scene. Recently jQuery and YUI also got themselves plugin
components that can be used to make complete gui-components.

Some developers might get irked by the viral nature of gpl. I
personally have no problems with gpl, but I could imagine certain
situations where gpl will cause grief.

---

The thing about extjs is that it requires minimal code-hacking to
implement some features on complete gui-components. They have a good
abstraction going on in the framework, not too low-level. It takes a
while though to grok the ext code. But once you understand the
inheritance technique they use (i.e. apply, call, from javascript) and
the way the let you plug handlers for gui-specific events, and how gui-
components share basic subcomponents. It isn't that much different
from coding gui in java or C#.

Mootools, great visual effects, very cutting-edge hot stuff. Too low-
level to write complete applications with.

Prototype... someone please say something about this... I hear they
try to override and redefine too many basic javascript type. They
(ab)use the prototype trick (they way to provide all objects of a type
some function/type) on native types.

Dojo ... someone please say something sensible about this...

JQuery has its own mini-language going on. Some people swear by it. I
just haven't tried it out yet. They have plugins which can be used to
create whole gui components, but I'm afraid it's a bit low-level.

Some extjs propoganda: http://www.infoq.com/news/2007/10/extjs20

Please share your propoganda on other frameworks/libs.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist
Guest
Posted: Wed Aug 13, 2008 6:58 am Reply with quote
Guest
I'm a big fan of JQuery. It's lightweight and it really takes much of
the pain out of working with Javascript. And it's written in a
functional style, which is cool. I've been wary of integrating a JS
library into ErlyWeb though simply because there are so many of them
and everybody likes something different. The magic components aren't
very powerful -- I created them mostly to illustrate basic usage of
ErlyWeb and also as a kind of Rails inspired joke to show that Erlang
can have magic too Smile I think that AJAXifying them would be
distracting for people who just want to poke around to see how to
create basic CRUD pages with ErlyWeb. I wouldn't be opposed though to
making AJAXified magic components optional. If we do, I vote for
JQuery. It makes ajax super easy.

On Fri, Aug 8, 2008 at 2:37 PM, Buggaboo <buggasnoo@gmail.com> wrote:
>
> Heyhey,
>
> --Jeff--
>
> I have nothing against other frameworks. I'm only familiar with
> mootools and extjs. I know for a fact that extjs could be used
> together with jQuery, yui, prototype etc. I've worked with extjs in
> the past and I already knew which features they got that we could use.
> I love new-tech, but I hate reinventing stuff (unless the thing being
> reinvented has advantages over the old...).
>
> I'll start hacking this and share code once I pick a nice lib to do
> the job.
>
> Bolting on these features directly on erlyweb will not be a good idea,
> since one of Yariv's goals was to sell erlang to websavvy peeps.
> Selling framework/lib along with erlyweb might detract from the
> original idea.
>
> A few modules containing xhr/json stuff... etc. might be easier to
> maintain. A reimplementation of create_components containing extra
> options with relation to xhr and json stuff... might be handy.
>
> --Dmitrii--
>
> Too bad about the unresolved issues with their licensing. I did some
> research on yui, it seems nice. Some extjs founders actually came from
> the yui scene. Recently jQuery and YUI also got themselves plugin
> components that can be used to make complete gui-components.
>
> Some developers might get irked by the viral nature of gpl. I
> personally have no problems with gpl, but I could imagine certain
> situations where gpl will cause grief.
>
> ---
>
> The thing about extjs is that it requires minimal code-hacking to
> implement some features on complete gui-components. They have a good
> abstraction going on in the framework, not too low-level. It takes a
> while though to grok the ext code. But once you understand the
> inheritance technique they use (i.e. apply, call, from javascript) and
> the way the let you plug handlers for gui-specific events, and how gui-
> components share basic subcomponents. It isn't that much different
> from coding gui in java or C#.
>
> Mootools, great visual effects, very cutting-edge hot stuff. Too low-
> level to write complete applications with.
>
> Prototype... someone please say something about this... I hear they
> try to override and redefine too many basic javascript type. They
> (ab)use the prototype trick (they way to provide all objects of a type
> some function/type) on native types.
>
> Dojo ... someone please say something sensible about this...
>
> JQuery has its own mini-language going on. Some people swear by it. I
> just haven't tried it out yet. They have plugins which can be used to
> create whole gui components, but I'm afraid it's a bit low-level.
>
> Some extjs propoganda: http://www.infoq.com/news/2007/10/extjs20
>
> Please share your propoganda on other frameworks/libs.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "erlyweb" group.
To post to this group, send email to erlyweb@googlegroups.com
To unsubscribe from this group, send email to erlyweb+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Post received from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum