Forum: Ruby on Rails jQuery's fancyZoom and delayedObserver conflict.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Marcelo de Moraes S. (Guest)
on 2009-02-04 21:53
(Received via mailing list)
Hello list,

I know this is more client-side stuff since I'm using Rails js helpers,
thought I would be posting here. -- the
delayedObserver simply doesn't work when fancyZoom is activated (it
fails silently). If I remove the fancyZoom related code, it works ok.
a sample code: Does anyone know why?


Marcelo de Moraes S. (Guest)
on 2009-02-13 02:38
(Received via mailing list)
Ok, here's why:

fancyZoom hides the target div, and its show() method then creates a
duplicate of this DOM subtree. The problem is that it keeps the same
and we all know we can't have elements with the same ID -- thus, $() and
getElementById fail. The solution was to be more specific and select
this: $('#zoom-content #id'), where #zoom-content is the name of the
duplicated div that fancyZoom creates, which is different from the


On Wed, Feb 4, 2009 at 1:53 PM, Marcelo de Moraes S.
This topic is locked and can not be replied to.