Displaying 20 results from an estimated 1100 matches similar to: "Unobtrusive Javascript plugin"
2006 Jun 07
9
Unobtrusive Javascript for Rails
I made a brief post on here the other day about this and now I can
proudly present the initial release of our unobtrusive_javascript
plugin for Rails. We''ll be working with Dan Webb of Vivabit to roll in
much of the functionality in his own as-yet unreleased
unobtrusive_javascript plugin into a single plugin.
This is essentially a preview release and probably not suitable for
use on a
2006 Aug 01
0
Unobtrusive Javascript for Rails 0.2
Dan Webb (http://www.vivabit.com) and I are happy to announce the
latest release of the Unobtrusive Javascript plugin for Rails. This
release packs in lots of cool new features, a few changes to old ones
and some performance enhancements.
Now you can write your behaviours in Ruby, attach behaviours directly
to elements using content_tag and apply behaviours to elements
without HTML IDs.
2006 Mar 05
7
whatever happend to unobtrusive javascript in Rails ?
Don''t get me wrong, JavaScript/Ajax helpers in Rails are a huge
timesaver and they have helped me to finally overcome my irrational
aversion to js libraries like prototype and such. However, all this
goodness seems to come at quiet a price. The resulting code is
littered with inline JS, including ubiquitous script tags and onload
attributes etc.. It seems that just when i found
2006 May 12
7
RJS and page.select collection size
I need to implement a conditional in my RJS template which looks
something like:
if (page.select(''row1'').first != null)
page << "new TableRow.MoveAfter(''row1'', ''newrow'');"
else
page << "new TableRow.MoveAfter(''row2'', ''newrow'');"
end
Now, dumb question.. My
2006 Jul 24
3
Rails and Dojo
Anyone have any positive or negative experiences trying to get Dojo to
play nicely with Rails / Prototype / Scriptaculous?
Would people recommend it? Recommend against it? Why?
Thanks,
Brad
2006 Jun 09
11
Adding routes from plugin
Can anyone tell me how to add routes from plugin? I know it is possible
because of this changeset: http://dev.rubyonrails.org/changeset/2967 but
i didn''t find way how to do it.
retro
--
Posted via http://www.ruby-forum.com/.
2006 May 18
4
Request Routing Plugin ( :requirements => { :subdomain => ''thing'' } finally works)
Hi All,
Just a quick note to say that I''ve released an intial version of the
request routing plugin which essentially allows you to use various
request object properties as requirements in routes. Most notably you
can do:
map.connect "thing", :controller => ''main'', :requirements => {
:subdomain => ''whatever'' }
..just like the wiki
2006 Mar 26
9
validate_uniqueness_of {combination of fields} ???
I''ve looked at the validates documentation and it appears that validates_uniqueness_of works on only one field at a time. So I can, for example, validate that "sam" is unique to the record set, and that "smith" is unique to the record set.
My problem is that each record includes two fields, the _combination_ of which must be unique to the record set, but each of
2006 Jun 05
1
Unobtrusive javascript...what if?
What if...you could produce accessible, unobtrusive javascript, using
Rails built-in javascript/prototype helpers, with just one extra line
of code in your layout, a plugin, and one small enhancement to the
helpers. Something like this:
[php]
<% form_remote_tag :controller => ''foo'', :action => ''bar'',
:unobtrusive => true %>
# which produces
2006 Feb 10
7
convert rails object to javascript variables
Am i a total idiot to try and parse out a rails object for javascript
in this way?
<%
for i in interface_items[0].attributes
%>
var <%= i[0] %> = "<%=h( i[1] )%>"
<%
end
%>
Am I missing something really obvious?
Thanks,
Mark
--
--------------------------------------------------------------------
I am Mark Daggett and I approve this message.
2006 Jan 12
3
Introspecting Active Record Associations
Hi,
I''m looking into write scaffold generators that will, amoung other
things, scaffold active record associations (eg. generate select
boxes for belongs_to where you can choose a parent object) for quicker
prototyping. But...
My question is: Is there anyway of finding out what associations
exist from examining the lodel classes themselves or indeed any other
way of finding out this
2005 Nov 28
5
Rails on lighttpd through proxy
Hi All,
We have a PHP site running on apache 1.3 and Im trying to graft typo
onto it at /blog/. Ive got the running using the symlink method but
apache/fastcgi are clunky to say the least so I want to move typo over
to lighttpd. Ive got this all working and Im now trying to get a
proxy working through from apache. Im using this:
RewriteRule ^/blog/?(.*)$ http://blog.myorg.net:8080/$1 [P]
2006 Feb 10
1
Rails is the devil on your client-side shoulder
Hi Everyone,
Sorry for the inflamatory title, just trying to get your attention.
Ive been thinking alot about the JavaScript helpers and I''ve written
my thoughts on my companies blog if any of you are interested:
http://www.vivabit.com/bollocks/2006/02/09/rails-is-the-devil-in-your-client-side-shoulder
I know people have brought this up a number of times but I really
think it needs
2006 Feb 10
1
instance_eval and Proc objects
Hi All,
Got a bit of a Ruby question for you.
If I have a function that makes a proc object like this:
def select(selector, &proc)
el = Element.new
el.instance_eval proc
end
select("#thing") do
hide
end
Wat I want to do is evaluate the Proc in the context of el but this
doesn''t work because instance_eval accepts a string or a block and not
a Proc object. I sense
2006 Mar 23
10
Domain Requirements in Routes (Edge Rails)
I saw on the bottom of the following page that you can route requests to
different controllers based upon which subdomain is being requested.
http://wiki.rubyonrails.com/rails/pages/Routes
with_options :requirements=>{:subdomain=>''first.com''} do
map.connect '''', :controller => "first/catalog"
map.connect ''featured'',
2007 Dec 06
3
anybody use OPEN_ID to authenticate?
how did it go?
here is the link if you are interested: http://openid.net/what/
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe
2006 Mar 19
38
Macbook for Rails Development
Hi All,
I''ve finally got fed up of struggling with Windows and am on the verge
of splashing out on a Macbook for Ruby/Rails development. I''ve seen
DHH''s post about it on loudthinking but I wondered if anyone else has
any more wisdom...
Is it worth it over a powerbook? Any tips on good OSX apps for Rails
dev (textmate, i know already)? Anything not working well on
2005 Jun 29
14
Unobtrusive scripting?
Currently, pages generated by Rails tend to be sprinkled with
JavaScript. This happens, because the various helper methods work only
locally and simply append to the output.
In order to hide the JavaScript away, rendering would probably have to
be changed. A way I can think of is that a page-specific script is
included in the head of the document and JavaScript code is not written
to the
2006 Jul 28
4
Validation Reflection plugin
The validation reflection plugin adds three things
(1) Reflective access to validations
- ModelClass.reflect_on_all_validations
- ModelClass.reflect_on_validations_for(:property)
(2) It provides "declarative" methods for defining
validations based on database metadata
- validates_presence_of_mandatory_content_columns
- validates_lengths_of_string_attributes
-
2007 Apr 09
0
Unobtrusive IPE -- comments, please
I just coded an unobtrusive In Place Editor and wanted to get some
review and comments for it. Anyone spot anything obvious that I could
do to streamline this?
Thanks,
Walter
<script type="text/javascript" charset="utf-8">
var rightClick = function(e){
Event.stop(e);
var editListing = new Ajax.InPlaceEditor("listing_body",