• Resolved bruce2me

    (@bruce2me)


    When my site loads, it creates a Javascript variable, “portfolio_info”, containing an array of objects used as a lookup table by numerous Javascript functions.

    I would like to display some of this same data in an HTML table created with the WP DataTable shortcode. How can a refer to this lookup table variable inside the shortcode?

    Thanks

    B

    • This topic was modified 6 years, 6 months ago by bruce2me.
Viewing 1 replies (of 1 total)
  • Plugin Author samsk

    (@samsk)

    Insides of shortcode are interpreted as javascript configuration array (JSON).

Viewing 1 replies (of 1 total)
  • The topic ‘Pass JavaScript array as data’ is closed to new replies.