Just wanted to mention that I was having trouble getting facebox to work on links that were dynamically inserted with javascript.
So for example if I did:
page.insert_html :top, 'some-div', :partial => "new_link"
that link wouldn't work until I refreshed the page.
The solution was to call the watchClickEvents() again every time after I added new links, like this:
page.insert_html :top, 'some-div', :partial => "new_link"
page << "facebox.watchClickEvents();"
Hope it helps...
Just wanted to mention that I was having trouble getting facebox to work on links that were dynamically inserted with javascript.
So for example if I did:
that link wouldn't work until I refreshed the page.
The solution was to call the watchClickEvents() again every time after I added new links, like this:
Hope it helps...