Support » Plugin: TablePress » Shortcode manipulate with jQuery

  • Resolved ruben777

    (@ruben777)


    Hello,
    I would like to know if it was possible to manipulate shortcode with jQuery script.
    In particular to display the contents of a cell with the shortcode cell extension.

    var i = 1;
    jQuery(".html").html('<div>[table-cell id=1 cell=E'+i+']</div>')

    Like this.

    Thanks
    Best regards.

    • This topic was modified 3 weeks, 1 day ago by  ruben777.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    No, sorry, that is not possible, simply because the jQuery code (JavaScript) runs in the visitor’s browser, but the Shortcodes run on the server.

    Regards,
    Tobias

    Thank you for your quick answer, last question 🙂
    Do you know if they can be manipulated to automate them otherwise?

    Regards.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    unfortunately, I don’t know readily usable solutions. You would need a custom PHP code solution to execute the Shortcodes on the server and send their output to the browser.

    Regards,
    Tobias

    Awesome thanks a lot for your time.
    I will try this way and see.

    Regards.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! 🙂

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.