Displaying 6 results from an estimated 6 matches for "some_div".
Did you mean:
some_dir
2006 Apr 03
4
page.visual_effect :highlight not working
I just upgraded Ruby to 1.8.4 and Rails to 1.1 and I''m in the middle of
changing my Javascript code over to the Scriptaculous helper functions.
page.visual_effect :highlight, "some_div" seems to be broken. Instead
of fading, the background color of the element stays highlighted.
page.visual_effect works for other effects, though. Any ideas?
Thanks.
--
Posted via http://www.ruby-forum.com/.
2011 Apr 29
2
change patial with change of the item in a select_tag
hi,
i would like to change a partial in my view with the change of the
item in a select_tag:
in the view:
<%= observe_field("payment_id", :url => {:controller
=>''user_admins'' ,:action => ''rend_part''},:on => ''change'', :frequency
=> 0.1) %>
<%= select( "payment", "id", { "Visa"
2006 May 05
6
RJS implementation question
Why is RJS so dependant on programatic creation of Javascript?
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
helpers for generating Javascript functions.
RJS putting Javascript second means:
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the
2006 Jul 10
1
link_to_remote questions
Hello,
I tried link_to_remote to see the build in AJAX capabilities with rails for
the first time for me, I tried the following code and it worked:
<%= link_to_remote( "some link",
:update => "some_div",
:url =>{ :action => :someaction }) %>
OK, it has worked, but I have two questions here:
1- When moving between links the URL in the browser still the same (which is
the name of the controller), I expected that the name of the action must
appear as it used...
2006 Nov 16
0
helpers not rendered in views?
...797&atid=3150
I''m not sure if this is true of all helper methods but it is for the
following. In this case the forn_remote_tag is rendered as an empty
line.
Apprently helpers are not rendered in view tests...
template _xyz:
<div>
<% form_remote_tag :update => "some_div", :url => {:action
=> :something } %>
<textarea style="width: 100%" rows="2">Enter text here.</textarea>
<% end_form_tag %>
</div>
failing spec:
specify "Form is rendered" do
render "/controller/_xyz"...
2008 Nov 22
3
RJS page.update question
How does page.update actually work? I know its a wrapper for
Prototype.update but how does it get the partial in there?
Say I wanted to update a div with the contents of a partial manually
like this.
content = render(:partial => ''whatever'')
page.call "$(''my_div'').update(#{content})"
But his does not work. It keeps giving me weird errors about