search for: blind_down

Displaying 18 results from an estimated 18 matches for "blind_down".

2006 Apr 22
0
RJS question - Query DOM/CSS from RJS?
...erstand that I wouldn''t be able to directly query into the DOM/CSS of a page from within an RJS file because it runs on the server but is there any way to populate a variable from the controller or something to gain access to DOM information? What I want to do is this: I have some RJS to blind_down an error message panel, but if the form is resubmitted and there are still errors, the blind_down still plays from the beginning because the RJS just says to blind_down with no conditions. I would like to be able to query the visibility of the error div to determine if I should blind_down or just l...
2006 Apr 14
4
Newbie needing help! How to read from database?
I''ve read through all the articles online but most/all of it discusses the use of Scaffolding as a quick solution for reading/writing to a database. I follow all that but now I''m trying to simply get a field from a table in the database to display in my .rhtml files. I''ve been trying to figure this out but to no avail. Someone please help! Thanks. Tim -- Posted
2006 Aug 09
2
Can :before and :success move from view file into .rjs file?
Within the RJS 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...
2006 Jul 06
0
Ajax form results display help
...the operation that I would like -User enters data - On submit of the form, the spinner shows - If there is an error, the error div is shown and everything else is hidden - If results are successfully returned, spinner and error are hidden and results are displayed in the search_results div with a :blind_down effect. Here is the view that I came up with: <%= form_remote_tag(:html => {:action => :search} :url => {:action => :list}, :update => {:success => ''search_results'', :failure => ''error''} :before => %(Element.show(''...
2007 Jun 15
2
Is it still possible to use should_have_rjs
...ew specs, all along the lines of: should have visual effect Unknown RJS statement type effect /Users/ashleymoran/Documents/Development/YourMoney/trunk/src/spec/ views/admin/add_dealer_rjs_view_spec.rb:33 31 32 it "should have visual effect" do 33 response.should have_rjs(:effect, :blind_down, "add_dealer") 34 end 35 I''m trying to revert these to should_have_rjs but I''ve looked through the RSpec source and it seems should_have_rjs was silently removed between 0.8 and 0.9. At least I can''t find any reference to it in the 0.9.4 source or the 1...
2006 Nov 02
5
RJS error in internet explorer
...nsert 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 + ''">'' + @doctor.name + ''</option>'' page[:phys_form].visual_effect :blind_up else page...
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 problem ? how did...
2006 Jul 18
0
another 2 newbie questions
...<div id=class style=''display-none''> <% if @tag.images.include? image %> <div id="images"> <%= show_image album.url+''/''+image.name %> </div> and in the <% for image in @images %> include some kind of :action=>blind_down just like in the flickr demo screen cast so that the div just blind down when images are loaded. I included all the scriptaculous.js in my /public/javascripts so all the necessary stuff should be there. thanx in advance Pat
2006 Jul 20
0
partials ''n'' stuff
I''m using partials together with ajax.. So when a user submits a form, the results are parsed in a :blind_down visual effect.. it works pretty well... Except, I want the partial to parse a set of table rows (with table cells accordingly) - and I cannot add a the table-tag (and th-tags) around the results.. Obviously, in the partial template the rows are looped through, so I should not add them there,...
2006 Jun 07
0
javascript that remote_function creates
...on instead of writing all the javascript out, but am having difficulties.. I have this code in a layout: <body onload="<%= remote_function(:update => ''show_active'', :url => {:action => ''show_active_bugs''}, :complete => visual_effect(:blind_down, ''show_active'')) %>"> Which creates the HTML: <body onload="new Ajax.Updater(''show_active'', ''/bugs/show_active_bugs'', {asynchronous:true, evalScripts:true, onComplete:function(request){new Effect.BlindDown("show_activ...
2006 May 12
0
RJS, Safari, Error - DOM exception 7
...<%= end_form_tag %> </li> <% end -%> </ul> Inline RJS: render :update do |page| page.hide ''addresses'' page.replace_html ''addresses'', :partial => ''addresses'' page.visual_effect :blind_down, ''addresses'', :duration => 0.5 end -- -- Tom Mornini
2006 May 18
3
"About your application’s environment" Effect
I was wondering if there is a Rails method that does something similar to the "About your application?s environment" link on the "Welcome Aboard" page you get when you first install Rails. What the link does is make and AJAX call, then blind down and up using AJAX. Thanks. -- Posted via http://www.ruby-forum.com/.
2006 Apr 06
0
Using Rails and the Flickr API
...collection => flickr.photos(:tags => params[:tags], :per_page => ''24'') end end views/flickr/index.rhtml - <%= form_remote_tag :url => {:action => ''search''}, :update => ''photos'', :complete => visual_effect(:blind_down, ''photos''), :before => %(Element.show(''spinner'')), :success => %(Element.hide(''spinner'')) %> <%= image_tag ''/images/spinner.gif'', :id => ''spinner'', :style => ''disp...
2006 Feb 16
0
RJS Question
Hi, What would my method call in an rjs template to produce something like: new Effect.BlindDown($(''commentList'').lastChild); I know if I just wanted to the blind effect I would: page.visual_effect :blind_down, "row_#{@new_item.id}" but how would I call it if I want the ".lastChild instead of passing a particular id? thanks, scott. ---------------------------------------------------------------------------------------------------- What''s an Intel chip doing in a Mac? A whole l...
2006 Feb 20
2
How can i render an external url?
Hi everybody, Well, how can I render an external url? In java, I do something like this: <html> <head> <title>External URL</title> </head> <body> <jsp:include page="www.rubyonrails.org" /> </body> </html> Noel R. Morais RFC - Ready for Calls +55 (11) 3471-4005 www.rfcnet.com.br -------------- next part
2006 Feb 11
6
Rails 1.1?
I have a few very basic questions. Is anyone using rails 1.1? How/Where can I get Rails 1.1 (I don''t see it on RubyonRails.org? What are the issues involved in moving from Rails 1.0 to Rails 1.1? If I move to Rails 1.1, can I downgrade? Just curious. Thank you very much for your assistance. Frank --------------------------------- Yahoo! Mail Use Photomail
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
2008 Jan 23
11
Rails 2.0.2 + RJS
Hi I had ajax commenting on my app, which worked perfectly on Rails v1.2.6, but does not work the same in Rails 2.02. Basically the comment gets added, but the visual effects do not work (ie lines 2 + 3 of create.rjs) create.js page.insert_html :bottom, ''comments'', :partial => ''comment'' page.visual_effect :appear, "comment_#{@comment.id}"