Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Reasons for considering LowPro...am I in the right place?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Follow-up To:
Add Cc | Add Follow-up to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers that you hear
 
Chris Cruft  
View profile   Translate to Translated (View Original)
 More options 29 Jan 2008, 14:43
From: Chris Cruft <c...@hapgoods.com>
Date: Tue, 29 Jan 2008 06:43:22 -0800 (PST)
Local: Tues 29 Jan 2008 14:43
Subject: Reasons for considering LowPro...am I in the right place?
I've recently been foiled by the pluginification of InPlaceEditor and
AutoCompleter in RoR and their incompatibilities with the current
Scriptaculous and Prototype.  In the past, being very comfortable in
Ruby,  I would have simply monkey patched the in_place_editor (for
example) to pass the htmlResponse variable.  But after doing some
research, I'm convinced that the Rails helpers are evil: I buy into
the behavior/content/style separation argument and I'm convinced that
the differing dev cycles on the three projects means the helpers will
forever be out of sync.

What's a developer to do?  I looked at jQuery, but I'm not ready to
ditch Prototype and Scriptaculous.  Then I found LowPro.  And while I
really don't like the idea of yet another library, I would consider a
small one if it is slick.

My first stab a LowPro involved removing the Rails JS helper
in_place_editor and adding code to application.js to add this behavior
to the relevant elements.  But WHERE is the InPlaceEditor behavior?
This behavior file in the lowpro subversion repository is only a
skeleton.  And the AutoCompleter is totally empty!  What gives?  Am I
expected to stitch Scriptaculous' AutoCompleter into LowPro myself?
If so, can anyone point me to an example?

-Chris


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 29 Jan 2008, 17:22
From: "Dan Webb" <d...@danwebb.net>
Date: Tue, 29 Jan 2008 17:22:59 +0000
Local: Tues 29 Jan 2008 17:22
Subject: Re: Reasons for considering LowPro...am I in the right place?
The InPlaceEditor behavior is something that I've intended to be a
rewrite of the Scripty version in a more Low Pro way but I've not
started yet.  Although, I keep a few behaivors in subversion they are
mostly to test and investigate the possiblities - Low Pro is a
framework for attaching behaviors to elements not a widget library as
such and I don't intend to write lots of behaviors with Low Pro.

However, you can create a behavior wrapper around the scripty
InPlaceEditor really easily that will allow you to attach it with
Event.addBehavior:

InPlaceEditor = Behavior.create({
  initialize: function(url, options) {
    this.ipe = new Ajax.InPlaceEditor( this.element, url, options || {});
  }

});

Then attach with:

Event.addBehavior({
  'h2.editable': InPlaceEditor('/products', { method: 'post' });

});

You can do a similar thing with all the scripty widgets as well.

Cheers,

Dan

On 1/29/08, Chris Cruft <c...@hapgoods.com> wrote:

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Cruft  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2008, 14:37
From: Chris Cruft <c...@hapgoods.com>
Date: Wed, 30 Jan 2008 06:37:33 -0800 (PST)
Local: Wed 30 Jan 2008 14:37
Subject: Re: Reasons for considering LowPro...am I in the right place?
Thanks Dan.  It would seem to me that good documentation of this
process would help a lot of RoR types break free of a strict reliance
on Rails helpers.  It is likely to be a common bitch now that the RoR
core team is letting InPlaceEditor and AutoCompleter helpers languish
while Scriptaculous and Prototype march on.

On 29 Jan, 12:22, "Dan Webb" <d...@danwebb.net> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarkko Laine  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2008, 16:42
From: Jarkko Laine <jar...@jlaine.net>
Date: Wed, 30 Jan 2008 18:42:08 +0200
Local: Wed 30 Jan 2008 16:42
Subject: Re: Reasons for considering LowPro...am I in the right place?

On 30.1.2008, at 16.37, Chris Cruft wrote:

> Thanks Dan.  It would seem to me that good documentation of this
> process would help a lot of RoR types break free of a strict reliance
> on Rails helpers.  It is likely to be a common bitch now that the RoR
> core team is letting InPlaceEditor and AutoCompleter helpers languish
> while Scriptaculous and Prototype march on.

Stay tuned for some PeepCode goodness soon...

//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Mabey  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2008, 17:50
From: Ben Mabey <b...@benmabey.com>
Date: Wed, 30 Jan 2008 10:50:29 -0700
Local: Wed 30 Jan 2008 17:50
Subject: Re: Reasons for considering LowPro...am I in the right place?

Peepcode has already covered lowpro in the JS and AJAX screencasts.

-Ben


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jarkko Laine  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2008, 17:54
From: Jarkko Laine <jar...@jlaine.net>
Date: Wed, 30 Jan 2008 19:54:15 +0200
Local: Wed 30 Jan 2008 17:54
Subject: Re: Reasons for considering LowPro...am I in the right place?
On 30.1.2008, at 19.50, Ben Mabey wrote:

> Peepcode has already covered lowpro in the JS and AJAX screencasts.

> -Ben

Yep, and will soon cover some more ;-)

//jarkko

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dan Webb  
View profile   Translate to Translated (View Original)
 More options 30 Jan 2008, 17:58
From: "Dan Webb" <d...@danwebb.net>
Date: Wed, 30 Jan 2008 17:58:19 +0000
Local: Wed 30 Jan 2008 17:58
Subject: Re: Reasons for considering LowPro...am I in the right place?

> Yep, and will soon cover some more ;-)

Excellent, nice work.  I'd love to see a preview ;)

--
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google