Displaying 9 results from an estimated 9 matches for "blind_up".
2006 Aug 09
2
Can :before and :success move from view file into .rjs file?
...template is there a way to specify when the visual_effect
should occur?
I''m trying not to repeat the :before and :success blind_down
visual_effect statements throughout my views.
It seems like the rjs templates can only take visual effects statements
in the form of
page.visual_effect :blind_up, ''divname''. I can''t figure out how to add
:before or :success to this statement.
Thanks,
DAN
--
Posted via http://www.ruby-forum.com/.
2006 Nov 02
5
RJS error in internet explorer
...and i get a lot of results with people getting this
error when adding rows to tables.. this doesn''t do that, but it does
insert an option to the drop down.
here''s my rjs template:
unless params.has_key?("commit")
if params[:cancel]
page[:phys_form].visual_effect :blind_up
else
page[:phys_form].replace_html :partial => ''phys_form''
page[:phys_form].visual_effect :blind_down
end
else
if @doctor.save
page.insert_html :bottom, ''doctor_id'', ''<option value="'' +
@doctor.id.to_s + ''&q...
2006 Jan 28
1
Help with multiple actions
I got a question I currently have a form_remote_tag and in it, I would like to
include two :before actions such as :before => %(Element.show(''item'')), :before
=> visual_effect(:blind_up, ''window'') but if I have them as such the last
:before is executated and the first one isn''t, how would I be able to have them
both execute when the :before callback happens?
2006 Jan 22
3
"onload" event handler inside a div
Hi. I need help on what is essentially putting an "onload" event handler
into a div. I am using render :partial and when the partial is loaded, I
would like the divs to show using an effect from a library such as
scriptaculous or moofx. However, there is no "onload" for a div. I was
wondering what alternative methods I should use to achieve this.
Thanks!
--
Posted via
2005 Dec 25
5
RJS not working?
I''ve been attempting to add a simple rjs ''delete'' method to my
project. However, no matter what I try, it simply doesn''t work. Even
the easy, easy stuff seems broken. (Yes, <%=
javascript_include_tag :defaults %> is being included in the template.)
For example, from:
http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates
VIEW:
<h1
2006 Aug 09
0
Agile Web Development - 2nd Edition -- Iteration D3 problem
hi,
This is regarding the "Depot Application". Section 9.3, Iteration D3 --
Highlighting Changes. I''ve followed this exactly according to the PDF,
but it doesn''t work.
The Ajax cart works, the blind_up and blind_down works. But couldn''t get
the highlighting of the current item to work.
Tested in Opera 9, FireFox 1.5 and IE 6 -- no luck !! I even searched
for this on the Books''s forum --
http://fora.pragprog.com/agile-web-development-with-rails-2nd-ed
Anyone had the same pr...
2007 May 19
4
button_to_function with image?
Hi:
does button_to_function allow the use of an image? I tried it in place
of the text with "image_tag" and it doesn''t work. Maybe some form of
button_to?
Any direction you can give would be great!
Mike
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2006 Apr 05
7
Conditional toggle button
I have a link_to_remote that updates the content of a hidden div and
makes it appear.. But I want it to hide the div and not execute the
link_to_remote function on the second click. What''s the best way to do
this? I''m thinking I can do it in RJS maybe, but I''m not sure if
there''s a nice Rails-y way to tell if a div is hidden or not..
I''d also
2007 Jan 23
7
Ajax
...ash[:notice] = ''El contacto NO ha sido modificado, revise la
informaciĆ³n''
redirect_to :action => ''show'', :id=> @persona
end
end
*********************
eliminar_item.rjs:
page[@id_for_div].visual_effect :highlight
page[@id_for_div].visual_effect :blind_up
*******************
_estudio.rhtml:
<tr>
<td>
<strong>Grado:</strong><%= text_field_tag ''grado[]''%>
</td>
<td>
<strong>Institucion:</strong><%= text_field_tag ''institucion[]''
%...