similar to: Prototype event observer problem

Displaying 20 results from an estimated 20000 matches similar to: "Prototype event observer problem"

2008 Mar 05
6
Prototype Observe Links (Mouseover)
Hi all, I''am new to Prototype and after a 2 hours of research I didn''t find a solution for the following question: I have the following list: <ul id="navi"> <li><a href="/about/">Home</a></li> <li><a href="/about/" class="dropdown" onmouseover="showSubnavi(this)">About</a>
2006 Mar 18
1
Prototype event models and Internet Explorer
Hi, I was just reading an article that talked about the problems with Microsoft''s event registration and handling. >From http://www.quirksmode.org/js/events_advanced.html 1. Events always bubble, no capturing possibility. 2. The event handling function is referenced, not copied, so the this keyword always refers to the window and is completely useless. I was wondering if the
2006 Feb 09
2
_marker in dragdrop.js
Hi, I''ve been confused about the purpose of _marker in dragdrop.js for quite a while. It doesn''t really look like it does anything with ghosting on or off. I removed the mark method and didn''t discover any problems. Is all the mark business a relic from some past idea? Thanks, Peter
2006 Feb 07
2
Thomas Fuchs? Helping with Scriptaculous
Hi, I''ve been doing a lot of rewriting of dragdrop.js. I''ve covered at least eight open tickets, made multiple selection of draggables, droppables can accept multiple items at a time, added 21 consistently-named callbacks and have reorganized the code. I''m working on adding more things to Sortable now. I''m no JavaScript expert, this is my first project, and I
2006 Mar 08
4
Event.Observer - (was: Ajax.Autompleter not working on IE)
See if I can stir up a little life with a demo. I can''t believe that Ajax.Autocomplete doesn''t work on IE, so I *must* be doing something wrong. Trying to figure this out I added some alerts to control.js and it seems that IE is not getting the onkeypress events. So, here''s a demo: http://hank.org/demos/form.html That contains two fields with onkeypress events:
2007 Aug 16
4
prototype: Event.observe 'click' for $$('a.popout')
Hi all first time im posting here, hope what i''ve written is clear. I''m trying to make a popup work using event.observe for all anchor tags with the CSS selector ''popup''. in the HTML i have this: < a href="somelink.php" class="popup">Click to go someplace </a> in my javascript I have a: Event.observe(window,
2006 Jun 15
3
RE: Yahoo!-like Event object emulation/abstractionin Prototype?
Event.observe(myelement, ''click'', myfunc.bindAsEventListener()); That might fix your wagon. Greg > -----Original Message----- > From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs- > bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Sam Rowe > Sent: Thursday, June 15, 2006 11:24 AM > To:
2007 Jul 02
3
list box poupulation using php,mysql and ptototype
I have some problems with php and Prototype.I am trying to implement listbox population (second dropdown box values depend on first dropdown) using php,Mysql and Prototype.But i have no idea how to implement . I hope you all have sucessfully done this, please show me an example --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2006 Feb 01
1
Sortable onUpdate problem
Hi, I have two sortables with different options (but same tags. just ''li''). When I drag an item from sortable1 to sortable2 I want it to gain the options that the sortable2 items have. I''ve tried all day to understand how Draggables and their observers are destroyed but I keep gettting buggy behavior. Part of the problem is the draggable and the draggableObserver are
2006 Mar 22
4
Capture/Observer keys (F11, F3, ALT+arrows, CTRL+C/V/X)
Hi all, I really appreciate all of you who are behind this great proyect. Im from Argentina (if you dont notice for my accent eheheh) Im trying to capture width the func Event.observe() the keys F3 and F11. Also the combinations for ALT and the arrows keys, and other combinations like: CTRL+X (cut) CTRL+C (copy) CTRL+V (paste) Using something like this: Code: Event.observe(window, keycode=122,
2006 Mar 15
3
prototype.js Event.stopObserving
anyone have any information on how to effectively use this? Event.observe() doesn''t return anything, and nothing I''ve tried is actually removing the event listeners from the objects. -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob.
2006 Jan 19
7
validates_numericality_of positive integer
Hi, What is the simplest way to validate a positive integer? validates_numericality_of :foo, :integer_only => true how do I add the positive part? Do I need another validation statement for pattern matching or do I have to write a validate() funciton for my model? Thanks, Peter
2006 Dec 14
17
Should Event.stopObserving() remove itself from cache?
Just wondering why Event.stopObserving() doesn''t remove the itself from the Event.obervers array? Is there a reason for this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2008 Feb 21
1
Prototype - Firefox - Slow On Just One Page
I''m using Prototype/Scriptaculous on a large web app. Everything runs briskly in IE, and everything runs briskly in Firefox except for one page. On this page, only in Firefox, any code that touches Prototype runs very, very slowly. In particular: I use Effect.BlindDown/BlindUp for dropdown menus. Same html and css on all pages. Flies along on all the other pages; here BlindDown crawls,
2006 Jun 15
4
Yahoo!-like Event object emulation/abstraction in Prototype?
Hi, I was reading about the Yahoo! library recently and was really excited by the idea that I wouldn''t have to branch for IE in my event handlers. Is there any chance that such abstraction will come to Prototype? Thanks, Sam
2005 Nov 08
1
Event.observers - I''m totally list - please help
Hello, I need some help on how to use the Event.observers - thank you in advance for your input. <div class="navcontainer"> <ul id="nav"> <li class="button"> <img src="images/spacer.gif" width="20" height="20"> </li> <li class="button"> <img
2006 May 25
7
prototype-ish subclassing
when using prototype and Class.create(), what''s the preferred method of creating a subclass? say I have a real simple class: var Testing = Class.create(); Object.extend(Testing.prototype, { initialize: function() { ... }, ... }); would I subclass it as so? var SubClass = Class.create(); Object.extend(Object.extend(SubCLass.prototype, Testing.prototype), { ...
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 Aug 31
2
Event.observe problem
Hi everyone! I came across and interesting problem with prototype Event.observe. Take this code for example: <script type="text/javascript" src="cropper/lib/prototype.js"></script> <script language="JavaScript"><!-- function handler(e) { if (document.all) { e = window.event; } var key; if (document.layers) key = e.which; if
2006 Apr 26
10
save new model with child model
Hi, I am having a problem saving a new model that has an associated child model. If a new ticket is being created and will have one comment to go with it then I tried this in my action @ticket = Ticket.new(params[:ticket]) @comment = Comment.new(params[:comment]) @ticket.comments << @comment if @ticket.save @notice = "Ticket added. Thanks for