similar to: Behaviour & Effect.Highlight?

Displaying 20 results from an estimated 300 matches similar to: "Behaviour & Effect.Highlight?"

2005 Dec 16
3
''floating dialog'' class
Inspired partly by what others are posting here, and partly out of necessity, I threw together a "floating dialog" widget class. It''s more or less a rip-off of the dialog widget from the Dojo framework - I had a need for something similar, but didn''t want to move outside of the Prototype/Scriptaculous libraries. When activated, the "dialog" floats in fixed
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 =>
2005 Nov 07
2
question about Effect.Highlight and IE 5.5
I''ve recently begun testing some of the scriptaculous functionality in IE 5.5, since my company wants me to support as many browsers as possible. When I do an Effect.Highlight on a <tr>, it doesn''t quite work right. I''ve figured out a few things, but I''m not sure whether you want to change them or not. Here''s what I know: In
2006 Jan 11
0
RE: Event.observer - unordered list problems
Hi Marco (I forwarded this also to the mailing list and removed the picture as it wasn''t necessary to include to the mailing list so everyone can hear the general techniques), I recently had a very similar problem with my project. The problem arises because whenever you move the mouse to ANY element, the previous element that the mouse was over gets a mouseout event, even if it
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
I just realized I made a mistake... in the first numbered solution, the != should be == ________________________________ From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Wednesday, January 11, 2006 2:28 PM To:
2006 Mar 31
2
RE: drag and drop sorting with an empty lis
I ran into this issue too. My solution was to add an "onUpdate" function to the sortable that tests the container to see if it''s got any children or not: function is_empty(container) { if ($(container).hasChildNodes()) { Element.removeClassName($(container),''empty''); } else if (!$(container).hasChildNodes()) {
2006 Feb 17
1
window.onresize event using Behaviour.js ?
Does any one know how to register a window.onresize event using Behaviour.js I tryed var myrules = { ''window'' : function(el){ el.onresize = function(){ alert("Window Resized") } }, } Behaviour.register(myrules); but no love. Thanks. ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions .
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
2005 Sep 25
2
Preventing/allowing exceptions to occur in Element.add/remove ClassName
Hello everyone ! Thomas asked me to discuss here the behavior of Element.addClassName, as relating to ticker #2232 [1]. In HEAD, if the element passed-in to Element.addClassName does not exist, an exception is thrown, and script execution stops there. I believe this is inconsistent with other functions: Object.extend(Element, { hasClassName: function(element, className) { element =
2005 Dec 20
0
swap css class
I was in need of a function to change (swap) css classes - this is what I came up with - maybe some of the prototype gurus could have a look at the function - I''m sure it needs some improvements, but basically it is working: // usage: toggle (boolean), elementId, old class, new class, tag(s) //
2006 Oct 09
2
page.visual_effect :highlight
I have some code that will do the highlight, fade effect on a block of text. It seems to work just fine until it is fired multiple times very rapidly. The end color matches a grey background and the start color is a yellow. Say its run 4 times a second for 3-5 seconds. When the flashing catches up the text will fade for the last time to the end color, then the background will switch to a
2005 Jul 12
2
highlighte
hi, i''ve just started using script.aculo.us visual effects, lots of fun. i was wondering what the best and most efficient way would be of achieving something along the lines of fade anything technique (FAT, http://www.axentric.com/aside/fat/) whereby an element''s background fades away from one color to the element''s native background-color. (for example, you get
2006 Jan 16
2
Behaviour.js and prototype Event.pointerX
is there a way to take advantage of prototypes Event.pointerX when using Behaviour to manage my events? somthing like.. var myrules = { ''body'' : function(el){ el.onclick = function(){ alert(Event.pointerX(e)); } } }; thanks ______________________________________________________________________ Alex Duffield . Principal . InControl Solutions . http://
2006 May 30
0
problem with effect toggle - please help
Hello, I''m having the following code below - when I click on the button in order to toggle a div, it is working when the div is visible - after it is toggled once, the beforeStart stuff isn''t executed anymore! interestingly, when I change this Effect.toggle(this.bContentWrap, ''blind'', { to this: Effect.toggle(this.bContentWrap, ''slide'',
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
2006 Jan 16
11
Preventing bubble
I''m trying to prevent double ajax requests when I have nested onclick handlers. I have a table with clickable column headings (for sorting by that column). I have onclick handlers on both the <th> and the <a> link so that clicking anywhere on the table heading should work. <th onclick="window.location.href=''http://foo?sort=foo'';">
2006 Feb 23
5
sortable_list added to by AJAX question
I have a working sortable_list that is added to by AJAX. The problem is that when a new item is added, it''s not sortable. I found a post on scriptaculous using behaviour.js to refresh the DOM when an item is added, but I can''t figure out how to do it with Rails. To test the behaviour method, I used this: var myrules={ ''div#steps ul'' :
2006 Jul 31
4
RJS to find an element
I''m trying to implement a remove from cart method based on the examples in the second edition Agile book. I have everything working except for the RJS that removes items from the cart. Ideally what I''d like to do is highlight an element that I am deleting only if there is more than one of that particular item in the cart. If the item deleted is the only of
2004 Feb 06
1
Illegal characters in message names
Hi all I've set up Dovecot to use maildir-storage according to the previous hint from Blair Zajac, and it's working perfectly. However, I still have a problem with the way procmail wants to name the received emails. The following is a slightly modified extract from my logs: procmail: [5373] Thu Feb 5 23:59:14 2004 procmail: Assigning "MAILDIR=/Users/name/Maildir/"
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 doesn''t match