There are variations on this question a couple of times per week, it  
seems. It comes from a lack of understanding of function references,  
and how to use them.

Given the code below, it is clear you are assigning the *result* of  
showConsultantSchedule (i.e. the return value after you call it),  
rather than a reference to it.

That's the difference between
onHover: someFunc()

and
onHover: someFunc

 From peeking at the Scriptaculous code, it seems the "onHover"  
callback passes three parameters, as follows:
function(element, dropon, overlap)

... so you could rewrite your showConsultantSchedule() function to  
accept these parameters.


TAG

On Jun 28, 2007, at 3:00 PM, [EMAIL PROTECTED] wrote:

>
> Hi all, first post.  I have a simple set of drag/drops that I'm trying
> to use in FF.  Unfortunately on page load all of the droppables on the
> page fire simultaneously and then won't respond to any futher attempts
> to drop anything on them.  Firebug isn't showing any errors and I'm
> completely stumped...  Any ideas of where to look?
>
> using: Droppables.add(divIdName, {accept: 'prospect', onHover:
> showConsultantSchedule(keyVar)});
> where divIdName is the var to the div name
> and keyVar is the ID that I need to send to the DB server
> and prospect is the class of the draggables
>
> I'm also using handles on the drags that match the div id that they
> are assigned to (already tried changing their name to no avail...)
>
> Thanks for any insight!
>
> Chris
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to