search for: addobserv

Displaying 20 results from an estimated 22 matches for "addobserv".

Did you mean: addobserver
2006 Jun 14
5
Sortable Tree - Stoping Event dispatch ?
Hi, I''m trying to play with sortable tree and have two issues: I have an AJAX Tree looking like: <ul class=''TreeCat'' id=''work''> <li class=''open''> <img src=''s.gif'' class=''node'' onclick="Ajax.Tree.toggle(event,this);"/> <a
2005 Aug 18
8
Extending a js class
It''s been a few days since I posted my last two emails (of which, no one replied to) so I''ve gone ahead and coded a working slider class as well as a ''resizeable'' class that allows a user to drag and resize the element. I also linked these two together as I want to have slider behavior that can resize the resizeable element. The end result is both the
2006 May 28
10
Drag''n''Drop out of overflow:auto containers
Cheers, I have some elements inside a div with overflow:auto. When I trie to drag them outside of the div, the div starts to scroll. Is there a way to stop this behaviour for drag and drop? I thought of maybe using callback to disable the overflow and restoring it againg after the drop. Did someone implemented something like this? Thanks, Jonathan -- Jonathan Weiss
2006 Apr 06
1
RE: Drag and drop events. Or: How I learned to takeover the world.
You should open up dragdrop.js in the scriptaculous directory and take a look at the interface for Draggables/Draggable. There is an event for dragStart, dragging, and dragEnd (not by those exact names but you should see them)... sorry I can''t offer more help than just pointing you in the right direction... very busy. Good luck, nice start! The information transmitted in this
2008 Oct 14
2
[LLVMdev] LLVM 2.4 problem? (resend)
Hi, I don't know enough C to know for certain if this is a programmer or compiler error: In a Objective-C source file I have: . static const char sessionEntriesKVO = ' '; . Later I use that variable as a ID by taking it's address like this: [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" options:0 context:&sessionEntriesKVO]; and later . if (aContext == &sessionEntriesKVO) { . With GCC 4.2 everything works as expected but with LLVM-GCC it seems that the optimizer does something strange to the sessionEntriesKVO vari...
2005 Oct 14
6
Draggables onDragStart
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 1027 bytes Desc: image001.gif Url : http://wrath.rubyonrails.org/pipermail/rails-spinoffs/attachments/20051014/b3c26edf/attachment.gif
2006 Aug 11
14
Sortable callback, when dragging starts/stops
Hi *, is there a callback or something else to get noticed, if the user starts (stops) to drag an element of a sortable? I only found the onUpdate and onChange callbacks, but they don''t give the information I need. Thanks in advance, Tim
2006 Jan 23
6
Performance Issues with Autocompleter
...f(this.update.firstChild && this.update.firstChild.childNodes) { this.entryCount = this.update.firstChild.childNodes.length; for (var i = 0; i < this.entryCount; i++) { var entry = this.getEntry(i); entry.autocompleteIndex = i; this.addObservers(entry); } } else { this.entryCount = 0; } this.stopIndicator(); this.index = 0; this.render(); } } </code snip> And this code above is called after the ajax callback is called with UL list. There are two calls to Element.CleanWhiteSpac...
2006 Mar 10
9
Observers?
Hello all! I''m having an issue with Observers, and I''m hoping someone knows the answer. Here is the definition: app/models/vehicle_observer.rb > class VehicleObserver < ActiveRecord::Observer > def after_save(vehicle) > breakpoint > if vehicle.has_new_mil_indication? > UserMailer.deliver_mil_notice(vehicle) > end > end > end
2008 Oct 15
0
[LLVMdev] LLVM 2.4 problem? (resend)
...g with a testcase that demonstrates the problem, thanks! -Chris > > > In a Objective-C source file I have: > > . > static const char sessionEntriesKVO = ' '; > . > > Later I use that variable as a ID by taking it's address like this: > > [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" > options:0 context:&sessionEntriesKVO]; > > and later > > . > if (aContext == &sessionEntriesKVO) { > . > > With GCC 4.2 everything works as expected but with LLVM-GCC it seems > that the optimizer does someth...
2008 Oct 14
0
[LLVMdev] LLVM 2.4 problem?
Hi, I don't know enough C to know for certain if this is a programmer or compiler error: In a Objective-C source file I have: . static const char sessionEntriesKVO = ' '; . Later I use that variable as a ID by taking it's address like this: [feedManager addObserver:self forKeyPath:@"sessionEntriesCount" options:0 context:&sessionEntriesKVO]; and later . if (aContext == &sessionEntriesKVO) { . With GCC 4.2 everything works as expected but with LLVM-GCC it seems that the optimizer does something strange to the sessionEntriesKVO vari...
2006 Jan 13
1
Capturing the position of a draggable element
I would like to capture the position of a draggable element after it''s being dragged, but I am running into problem using several options, such as "change", "revert" and "onEnd". My callback handler would only fire when the page loads, and not when the element is dragged. How can I make this happen? <html> <head> <script
2006 Apr 06
1
RE: Drag and drop events. Or: How I learned totakeover the world.
Oops... typos... Outlook stripped the newline from the 1st and 2nd code lines... and in the last line it should be: Draggables.addObserver(myDraggableObserver); (I copied and pasted from my code and missed that 1 change)... The information transmitted in this electronic mail is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retrans...
2005 Aug 10
1
overflow and drag&drop?
All, I''m creating a palette type UI where the user sees a div on the right of the screen with various items they can drag to the center area. So far, I''m using the drag & drop calls and this works perfectly. I''ve run into a problem now because I gave the div an overflow setting and fixed height so if the palette list gets long it won''t stretch out the page:
2005 Aug 24
1
Re: triggering autocomplete with a button press
...ctly displays the autocomplete drop-down div, but it is not active - the items do not highlight when I hover over them, nor can I scroll through the items using the arrows keys. I''ve tried various combinations (setting min_chars to 0, setting has_focus, changed and active to true, invoking addObservers(), etc.) but none of them have the desired effect. Is there a way to trigger the autocomplete field using an external function call? Thanks, Tyler
2005 Jun 28
1
Thomas script.aculo.us (important bug and add ons)
...ange: function() {}, onUpdate: function() {} }.extend(arguments[1] || {}); $(element).sortable_tag = options.tag; // convenience for serializing $(element).sortable_onChange = options.onChange; Element.cleanWhitespace(element); // fixes Gecko engine Draggables.addObserver(new SortableObserver(element, options.onUpdate)); ---- In the class above, you create a function called onChange() which is a javascript function. Then you create a reference to onchange from an element in the DOM. $(element).sortable_onChange=options.onChange; So what''s happening is...
2006 Jan 11
0
RE: Event.observer - unordered list problems
...erver to create some onmouseout and onmouseover events doesn''t lead to the expected result. The mouseover effect is working but I''m not able to move over to the sub-list - it is closed again as soon as I move off the main button. This is the code I''m basically using: addObservers: function (element) { //Event.observe(element, ''mouseover'', this.onMouseOver.bindAsEventListener(this)); //Event.observe(element, ''mouseout'', this.onMouseOut.bindAsEventListener(this));...
2006 Jan 11
0
RE: RE: Event.observer - unordered list problems
...erver to create some onmouseout and onmouseover events doesn''t lead to the expected result. The mouseover effect is working but I''m not able to move over to the sub-list - it is closed again as soon as I move off the main button. This is the code I''m basically using: addObservers: function (element) { //Event.observe(element, ''mouseover'', this.onMouseOver.bindAsEventListener(this)); //Event.observe(element, ''mouseout'', this.onMouseOut.bindAsEventListener(this));...
2006 Jun 14
5
generic onDragStart onDrag and onDragFinish events extracted from scriptaculous?
Hi folks. I''m working on a project where I need some drag and drop, but I need to implement what happens in a very different way, so I''m creating my own class for it. I don''t want to reinvent the wheel and redo Thomas'' excellent drag/drop functionality, nor do I want to copy/paste his code over into mine. So, I was wondering, has anyone tried to extract
2008 Jun 04
9
How to achieve the 'multi' fade effect that is used by Apple computer?
Hi all! My first post here, so: be gentle ;-) I have been playing around with the scriptaculous library for a while now, and I must admit it is great. However, there is one thing that I''m notable to achieve: On Apple computers website for ilife (iphoto) http://www.apple.com/ilife/iphoto/ there is a verrrryyy nice fade effect going on when you click the navigation for ''new in