You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Open specific item in scrollable when loading Overlay Created Aug 5, 2010

This thread is solved

Views: 573     Replies: 1     Last reply Aug 10, 2010  
You must login first before you can use this feature

ranthony11

Posts: 7

Registered:
Jun 24, 2009

Open specific item in scrollable when loading Overlay

Posted: Aug 5, 2010

I have an overlay, and inside the overlay is a scrollable. I have a number of different triggers for the overlay on the page, and I want each triggering element to open a specific item in the scrollable. It seems like it should be easy enough to do, but I'm having a lot of trouble. I tried using the onBeforeLoad() method of the Overlay, then using the scrollable's api.seekTo() to go to the index of the scroll item, but it isn't working.

Anyone know how to do this? Or run into this problem before?

Thanks,
Rick

ranthony11

Posts: 7

Registered:
Jun 24, 2009

» Open specific item in scrollable when loading Overlay

Posted: Aug 10, 2010

Reply to: Open specific item in scrollable when loading Overlay, from ranthony11
Well, after banging my head against the wall on hours for this the answer turned out to be:

var thisid = event.originalEvent.originalTarget.id;

Where event is the event obj passed to the onBeforeLoad function.

Go figure.