• Resolved gdisalvo

    (@gdisalvo)


    Hello Tobias,

    I know you are busy with other questions. I do not have an issue but would like to know if this is possible or not.

    My question is to use JQUERY and read the table data from POST content to be displayed on a mobile device. The JQUERY mobile site is up and running and I would like to read data from POST to display on a JQUERY UL LI Link so the use can see it in a list and maybe get to details. This LIST data is also stored as a table of data for the main website NOT MOBILE.

    Does your plugin have a way to convert the CONTENT from post (JSON) back to a format I can read and display as a list?

    Thanks for your thoughts.
    G

    https://wordpress.org/plugins/tablepress/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter gdisalvo

    (@gdisalvo)

    Sorry – just as FYI. I am looking at
    class TablePress_Table_Model extends TablePress_Model

    to see if there is a way I can use your class object directly to access the data and create a quick UL LI listing directly with custom PHP.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    So, from what I understand, this is not directly related to jQuery, but you simply want to display a table as a list (with HTML <ul> and <li> tags instead of HTML <table> tags). For that, you could simply write a custom filter hook function for the tablepress_table_output filter hook from the class-render.php file. That gets passed all the table data as an array and you’ll just have to return the desired HTML code.
    Then, you can of course add your custom jQuery code on the frontend as well.

    Regards,
    Tobias

    Thread Starter gdisalvo

    (@gdisalvo)

    Yes Tobias,

    Thank you for the response. I will look at the
    tablepress_table_output filter hook from the class-render.php file.
    to see if it can be incorporated into the JQUERY MOBILE HTML page. This page will RENDER the UL LI Listing in JQUERY mobile format. I just needed the server to serve it up as a SQL data fetch and I can list it out.

    If this allows me to access your tablepress data without doing JSON to explode it then you gave me the answer.

    Thanks,
    G

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    another idea might be to use the TablePress::$model_table->load( $table_id ); method. That will also return the table data as an array value, so that you can use it elsewhere.

    Regards,
    Tobias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘TablePress with JQUERY’ is closed to new replies.