jquery - Fancybox set content source class name -


using fancybox 2, i've been able trigger content source types via class on triggering element. example, <a href="..." class="fancybox.iframe">...</a> trigger iframe.

i'm updating fancybox v1 on existing code base, , adding these classes each link isn't particularly desired.

i can:

  • add class dynamically js (each link has class of iframe jquery hook onto, add right class on top of on page load)
  • somehow change settings of fancybox 2 pickup iframe class , use instead of fancybox.iframe.
  • add type: iframe call options.

for sake of compatability, i'd go second option, there's nothing on documentation on whether it's possible.

is possible change class fancybox looks detect content source?


Comments

Popular posts from this blog

php - Using str_replace to translate a MySQL Table in html -

asp.net mvc - Cannot display error message on Editor or EditorFor -

SQL Server - MyCTE query based on 24 hour period (next day) -