JQuery

2 views
Skip to first unread message

Francis Hwang

unread,
Feb 12, 2010, 2:20:20 PM2/12/10
to admin_a...@googlegroups.com
Dear admin_assistant users:

If I were to make it possible to configure aa to use JQuery instead of
Prototype/Scriptaculous, would any of you folks be interested in that
feature? And perhaps more pertinently, would any of you be able to
help out with copying over the existing Scriptaculous functionality
into JQuery? I'm pretty noobish with JQuery myself.

FH

Luke Melia

unread,
Feb 12, 2010, 2:21:54 PM2/12/10
to admin_a...@googlegroups.com
Yes and yes.

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

--
Luke Melia
lu...@lukemelia.com
http://www.lukemelia.com/

Luke Melia

unread,
Feb 12, 2010, 2:26:34 PM2/12/10
to admin_a...@googlegroups.com
Are you planning on maintaining two JS implementations or switching
over.

Francis Hwang

unread,
Feb 12, 2010, 2:32:05 PM2/12/10
to admin_a...@googlegroups.com
I've been thinking of maintaining two JS implementations: Seems like
there are lots of cases where you just want an admin interface that
works with existing JS code you've written. That's obviously more
maintenance hassle but since AA doesn't have a huge amount of JS, it
might be okay.

Too bad there isn't some way to write an intermediate layer that gets
turned into Scriptaculous or JQuery at the last minute. Kidding. I
think.

JCQ

unread,
Feb 12, 2010, 2:52:54 PM2/12/10
to admin_a...@googlegroups.com
> Too bad there isn't some way to write an intermediate layer that gets
> turned into Scriptaculous or JQuery at the last minute. Kidding. I
> think.

really? that's the whole basis for jQuery (and most of the other such
libraries): create something that's like an uber-Adapter pattern so
the API(s) used to manipulate the underlying cross-browser intricacies
is abstracted away and we get to program to a simplified interface. I
should guess it'd be *way* easier to do it this than to have to
maintain two sets of code.

And, one good thing: because this is an admin-ish type of tool, you're
not really needing to focus on code optimization and the like. You
could do the re-write to a common API using prototype which you're
great at and if afterward it takes you, say, 15 lines to code in
jQuery something which really only needed 2 were you a jQuery master,
that's ok.

Francis Hwang

unread,
Feb 12, 2010, 3:45:03 PM2/12/10
to admin_a...@googlegroups.com
Basically it's about compatibility with the rest of the Javascript on
someone's web site, for those cases where you want to re-use some of
your front-end JS in your admin interfaces. My understanding is that
you can theoretically use both Prototype and JQuery in the same page,
but it's a fairly tricky thing to do right.

So I want to be able to write JS that will work fine with either a
Prototype/Scriptaculous app or a JQuery app. I suppose I could just
write it in bare-bones JS but that'd be a ton of work. Though that'd
be less work than writing and maintaining my own custom library that
does a lot of what Prototype or JQuery do, just for admin_assistant.

I'm wondering if writing everything twice, once with Scriptaculous and
once with JQuery, is just less work than any other option ...

FH

Dinshaw Gobhai

unread,
Feb 15, 2010, 10:34:32 AM2/15/10
to admin_a...@googlegroups.com
jQuery has a no conflict mode. Prototype doesn't seem to (may be wrong).
I am a jQuery guy, so I am a little biased, but what about only
maintaining a no-conflct jQuery code base for AA, then if people want
to add their own Prototype stuff, there will be no problem?
I would like to help although I can't promise anything as I am sort on
hours these days. I have started working on some css that i hope to
push one day. If anyone has any designs they like, feel free to
recommend.

dinshaw

unread,
Feb 18, 2010, 2:57:40 PM2/18/10
to admin_assistant
Also, rails 3 defaults to some jQuery for the unobtrusive view helpers

Francis Hwang

unread,
Feb 18, 2010, 3:35:48 PM2/18/10
to admin_a...@googlegroups.com
Okay, so maybe I should experiment with that: AA using JQuery
exclusively, in no-conflict mode so people can use it in a Rails app
that uses either Prototype or JQuery. This'll be some branched dev for
a while I think, but does anybody have any issues with that?

FH


On Thu, Feb 18, 2010 at 2:57 PM, dinshaw <gob...@gmail.com> wrote:
> Also, rails 3 defaults to some jQuery for the unobtrusive view helpers
>

Dinshaw Gobhai

unread,
Feb 18, 2010, 3:46:58 PM2/18/10
to admin_a...@googlegroups.com
here is the link to the Rails 3 file just for reference.
http://github.com/rails/jquery-ujs/

I'd happy to help when i can if you feel like setting up some tasks somewhere.
I have been using http://agilezen.com/ . they have a free account

Luke Melia

unread,
Feb 18, 2010, 4:15:12 PM2/18/10
to admin_a...@googlegroups.com
+1 on this

--
From the iPhone of Luke Melia | http://www.lukemelia.com |
917-770-9196 (m)

Reply all
Reply to author
Forward
0 new messages