views:

514

answers:

0

I'm using the DOM Popup Kit to create Netflix like popup windows when a user hovers over an image.

The kit requires me to place the popup content in a div at time of page loading. The page I'm using this functionality has about 100 images, thus having to create the div content for all 100 images is slow. Thus I would like to update the DOM Popup Kit functionality to make an ajax call which returns data to the div, then the popup shows the contents of that div.

In summary:

DOM Popup Kit works like this: Hover over a span and related div content is shown as a popup

I would like to change to the following: Hover over a span, ajax call to populate div, then popup window with div content.

I'm doing all this in Rails and I followed the DOM Popup Kit rails example: DOM Popup Kit rails example

Anybody out there know how to accomplish this?