search for: startcolor

Displaying 20 results from an estimated 30 matches for "startcolor".

Did you mean: start_color
2010 May 24
2
Two RJS visual effects will happen at the same time?
I was going to change the background of a div from white to red and then from red back to white, so this is used in an RJS file: page[:vote_score].visual_effect :highlight, :startcolor => ''#ffffff'', :endcolor => ''#ffcccc'' page[:vote_score].visual_effect :highlight, :startcolor => ''#ffcccc'', :endcolor => ''#ffffff'' But looks like they happen at the same time, instead of one after another. Is th...
2006 Apr 28
1
startcolor and endcolor not working
In my RJS template this works: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5} but not this: page.visual_effect :highlight, "test#{@test.id}", {:duration => 5, :startcolor => "#FFFFFF"} Am I misunderstanding how to pass in additional parameters? _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
2006 Mar 14
2
rjs woes
...esp.responseText); eval(resp.responseText); } rjs template: page.visual_effect :highlight, "cb_div", { :start_color => "#aaffaa" } the success_handler is getting called, as the alert shows the javascript being returned as: new Effect.Hilight(''cb_div'', {startcolor:#aaffaa}); but as i said, it''s not getting evaluated in the eval() call. (i''m not seeing the effect) anyone have any ideas? Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060314/21...
2006 Jul 31
4
RJS to find an element
...tem deleted is the only of it''s kind it gets removed from the document before the highlight is "activated". page[:cart].replace_html :partial => ''cart'', :object => @cart page[@div].visual_effect :highlight, :startcolor => "#88ff88", :endcolor => "#114411" Is there a way to use RJS to see if page[@div] (in this case) exists before I try to do the highlight? Thanks, Jake
2008 Jan 23
11
Rails 2.0.2 + RJS
...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}" page.visual_effect :highlight, "comment_#{@comment.id}", {:startcolor => ''"#84E003"''} commentscontroller.rb: def create @comment = Comment.new(params[:comment]) @comment.user = User.find(current_user) @comment.story = Story.find(params[:story_id]) respond_to do |format| if @comment.save format.html { redirect_to s...
2006 Jul 26
1
how do I change color to an highlight effect ?
This is my code: <%= form_remote_tag :url => { :action => "forgot_account" }, :update => "result", :complete => visual_effect(:highlight, "result", :duration => 2, :startcolor => "#c8e673", :endcolor => "#9db55d") %> If I remove colors to the effect everything works, but with this code it renders on another page ... TIA, ngw -- Nicholas Wieland nicholas_wieland@yahoo.it -------------- next part -------------- An HTML attachment was...
2006 Apr 07
1
changing visual_effect defaults
...yntax for changing an effect like :highlight? i tried looking through the api, and found it, but i can''t seem to get it right. i want to change the start color of visual_effect(:highlight, ''user-list''). i tried visual_effect(:highlight, ''user-list'', :startcolor = ''#990000'') and several other variations of that, but i can''t seem to get it right. -- Posted via http://www.ruby-forum.com/.
2006 Mar 07
1
Minor fix for Ajax.InPlaceEditor
controls.js line 471: Where it says: new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); can we change it to: new Effect.Highlight(element, {startcolor: this.options.highlightcolor, endcolor: this.options.highlightendcolor}); . Otherwise, it''ll use the default #FFFFFF to finish the highlight which doesn''t look right when #FFFFFF doe...
2005 Dec 07
5
InPlaceEditor update of page contents ?
Hi all ! InPlaceEditor refreshes only the element that was updated. Is there any way to make it update tons of other stuff ? I have a table where changing a value in it causes changes in most other cells (weight to percentage to money). Thanks for any help ! -- François Beausoleil http://blog.teksol.info/ _______________________________________________ Rails-spinoffs mailing list
2006 Jul 03
0
Page 129 of Agile Web Dev on Rails (or pg141 of pdf!)
Hi - another question, sorry.... I''m trying to get the highlighting effect to work on the current_item. The page refreshes fine, and then I get an error as the highlighting code is fired: page[:current_item].visual_effect :highlight, :startcolor => "#88ff88", :endcolor => "#114411" The error is: RJS Error [object Error] (which is helpful!) Followed by a pop up window containing the page code, the last line of which is: $("current_item").visualEffect("highlight&q...
2008 Sep 03
2
Highlighint rjs problem on a new product
...@item.quantity +=1 @item.save! end respond_to do |format| format.js end end ------------------------------------------------- Js.rjs code: page.replace_html ''calculated'', :partial => ''add_to_cart'' page[:highlighted].visual_effect :highlight,:startcolor => "#88ff88" ,:endcolor => "#FFFFFF" --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3...
2007 Jun 04
2
Re: Ajax.Request question with JSON return
...39;txtRefFirstName'').value = oUser.FName; //was > hoping I could do this, but it didn''t work > Element.setOpacity(resultDomElem, 0.0); Effect.Appear(resultDomElem, > { duration: 0.5 }); > new Effect.Highlight(resultDomElem, > {startcolor:CEB195, endcolor:F8F8D2}); > } > } > ); > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group...
2006 Oct 09
2
page.visual_effect :highlight
...was happening in both Firefox and IE. Does anyone have any experience with this? Here is the code in my controller: render :update do |page| page.visual_effect :highlight, @card.to_s, :duration => 0.5, :startcolor => "''#ffff00''", :endcolor => "''#f1eded''" end -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Goo...
2006 Apr 04
3
Keeping javascript in the <head>
Given that Rails has built in ways to do almost everything else :) , is there a way to keep view specific javascripts inside the head tag of a layout without having to include that javascript on every page? -- Marlon -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060404/65e9bb6d/attachment.html
2006 Jan 10
5
using dynamic element ids with visual_effect
...k item. Right now, we do it with: <script language="JavaScript"> function flash_cart(request) { var id = request.getResponseHeader(''X-Item-Id''); new Effect.Highlight(''cart_item_'' + id, { startcolor: "#66bb66", endcolor: "#114411" }); } </script> <%= link_to_remote ''Add to Cart'', :url => {:action => ''add_to_cart'', :id => product}, :update => &...
2005 Aug 10
1
Issues with Canoo WebTest
I''m trying to use Canoo WebTest (based on HtmlUnit) to test my webapp after integrating scriptaculous. While my test passed, I get a nice long exception message which barely makes any sense (see below). I found I could get rid of this message by commenting out line 114 of effects.js: 114 this.timeout = setTimeout(this.loop.bind(this), 10); Any idea of what might be causing
2006 Apr 27
7
RJS & Ajax question...
...in the save action itself, using the following: render :update do |page| page[:scratchpad].hide page.replace ''todo'', :partial => ''table'', :locals => {:items => items} page["row#{@item.id}"].visual_effect :highlight, :startcolor => ''#fff00'', :duration => 5 page.replace_html ''flash'', "<p style=''color:green''>#{@item.title} successfully updated!</p>" page[:flash].show page[:flash].visual_effect :pulsate, :queue => {:position => '...
2006 Mar 16
9
Baffling AJAX issue
Ok, I''ve got some link_to_remote stuff working elsewhere just fine, but this time it''s doing something very screwy. Here''s the view code to create a link to remotely toggle a boolean value on a record: <td class="contact_active"> <%= link_to_remote "<div id=''contact_active_#{cm.id}''><span
2006 May 09
4
changing the color of :highlight
Is there an easy way to change to color of the :highlight effect? :complete => visual_effect(:highlight, "targetid", :duration => 1) thanks -- Posted via http://www.ruby-forum.com/.
2007 Apr 09
0
Unobtrusive IPE -- comments, please
...ascript" charset="utf-8"> var rightClick = function(e){ Event.stop(e); var editListing = new Ajax.InPlaceEditor("listing_body", "ajax_update.php", {rows:20,cols:50, onComplete: function(transport, element) { new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); editListing.dispose(); }, loadTextURL: "get_raw.php?id=<?= $id ?>&field=description", ajaxOptions: {method: "post"}, callback: function(form, value) { return "id=<?= $id ?>&field=description&myparam...