Displaying 20 results from an estimated 6000 matches similar to: "whatever happend to unobtrusive javascript in Rails ?"
2006 May 10
7
AJAX effects
I was at http://rails.techno-weenie.net/ and I like what ajax does when
you click on "login" how can I do this on my own website? Is this with
the defualt JS libary?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 13
2
Change Password with acts_as_authenticated
I want to have a form to change a users password. I can''t figure out
what the method in the controller should look like. I tried @user.save
and @user.update_attributes, but can''t get it to work.
My Form:
##############################
<%= start_form_tag :action => "update_password", :id => @user.id %>
<%= password_field ("user",
2006 Jan 03
5
Are cache sweepers used?
After drawing many virtual blank stares in the IRC channel and finding
zero results on the wiki for ''sweeper'' I''m left to wonder whether
these are actually officially supported, or are on their way toward
being deprecated. Is there a better way of expiring caches on model
saves and deletions?
Sincerely,
Tom Lieber
tom@alltom.com
http://AllTom.com/
2006 Feb 04
4
Page caching feeds and cache file extensions
I have a feeds controller which generates RSS and Atom pages. I put
''caches_page :show'' in it. The problem is that the pages are saved with
an html extension. As a result, browsers display the cached feeds as
HTML rather than XML, and feed validators complain.
There''s an option to set ''Base.page_cache_extension'' globally, but I
don''t want
2007 May 11
15
Simulating onmouseleave and onmouseenter with Prototype
Hello.
I spent an hour or three chasing down a desired effect that mootools
implements, namely the simulation of onmouseleave and onmouseenter
events.
Why?
Lets say you have a Menu. A ul element that contains many li elements.
If you want to have a function (maybe an effect) fire when the mouse
moves outside of the ul, you are out of luck. Observe the mouseout
function like so:
2006 Jul 21
10
Using an image button for "link_to_remote"
All,
I want to do an AJAX request using a custom image button. I currently
have this as a standard button action using "button_to".
What I need is the button equivalent of "link_to_remote". Is there a
helper that I can use, or do I need to build it by hand?
I see button_to_function(), but that sets me up to call a Javascript
function, not post to a Rails action.
Or can
2006 Aug 07
5
RJS Change Background Color
What''s the page.method to change the background color of a DOM element? I''m
trying to change the background color of a couple of styled <li>''s when an
Ajax link is clicked.
Thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060807/63de04bf/attachment.html
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
2007 Mar 14
0
SV: Re: each() and parameters and unobtrusive javascript
You could also try to go with the button element since it can wrap content like images. Something like:
<button name="delete"><img src="..."></button>
along with some styling to your liking.
-Tobias
-----Oprindelig meddelelse-----
Fra: rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org [mailto:rubyonrails-spinoffs@googlegroups.com] På vegne af
2006 Nov 04
6
Javascript form validation for In place editting in scriptaculous ?
Is there a way by which I can do form validation for form generated by In
Place Editting of scritaculous?
The reason is, I want to avoid server roundtrip for checks which I can
perform at browser.
Regards,
Jatinder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060828/ca882668/attachment-0001.html
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 Jul 27
9
Introspecting validates_presence_of
Hello people,
I''d like to detect whether an attribute of a model has
vaildates_presence_of applied to it so I can automatically apply a
mandatory (*) to the field...it doesn''t look easy...any ideas?
Cheers,
--
Dan Webb
http://www.danwebb.net
2012 Dec 24
3
Not able to install puppet enterprise onn agent node using install command.
Hi,
I have created an agent node from a master node using below command.
puppet node_aws create --image ami-cc5af9a5 --keyname icos-client --type
ti.micro
Now as i am trying to install puppet on it using below command
puppet node install \
--install-script=puppet-
enterprise \
--installer-payload=/usr/local/puppet/puppet-2.7.0.tar.gz \
--installer-answers=/usr/local/puppet/agent.txt \
2005 Jul 08
4
Browser compatibility goes back how far?
I asked this on the Rails list, but it might be more appropriate here.
When we''re estimating how many users would have access to our site if
we choose to use AJAX and script.aculo.us -style javascript, what
kind of percentage are we looking at? 50%? 75%?
Does this kind of fancy JS work on IE 5.0, or earlier?
Thanks!
Duane Johnson
(canadaduane)
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 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.
2010 Mar 27
2
Using SVN + SSH on windows
Hi the list,
I try to use R-Forge for developping a projet. I am using tortoise SVN
(last version) but I do not manage to Commit. I read the R-Forge user
Manual and some post on but I do not manage to find the solution. Here
is what I did:
1/ I download 'puttygen.exe'. I generate a key (256 bits).
2/ I save the private key in a file 'private.ppk' on my computer.
3/ I
2006 Jul 21
3
Unobtrusive Javascript plugin
Hi,
I downloaded the unobtrusive_javascript pluing from this link
(http://www.lukeredpath.co.uk/index.php/2006/06/06/introducing-unobtrusive-javascript-for-rails/)
since I needed to have dynamic content in javascript (for a pop-up
menu).
Unfortunately I have been unable to make the plugin work. I followed the
instructions on the website, but for some reason the javascript doesn?t
work (for
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",
2005 Dec 21
5
ajax - multiple updates on single xmlhttprequest
Hello,
I was wondering whether anybody would share a working example of a multiple
html update on a single xmlhttprequest.
Thank you in advance for your help.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement