Title: Request: Auto Table Import Extension &#8211; Allow Javascript
Last modified: April 3, 2020

---

# Request: Auto Table Import Extension – Allow Javascript

 *  Resolved [Rick](https://wordpress.org/support/users/rferrall/)
 * (@rferrall)
 * [6 years ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/)
 * I apologize if this isn’t the right location, but seemed the best option.
 * The Automatic Periodic Table Import extension, it does not import the onclick
   part of a link or button. Specifically, something like this:
 * `<input type="button" value="rate" onclick="window.open('https://someurl.com','
   _blank', 'toolbar=no,scrollbars=1,resizable=yes,top=100,left=100,width=450,height
   =300');">`
    It’s just missing when auto-imported, but shows up when importing
   the same file manually.
 * If possible to do this, it would probably be useful to some people to have this
   functionality.
 * Thanks.

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/2/?output_format=md)

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12621479)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I know what you mean, but unfortunately, I can’t really think of a solution for
   this 🙁
    The reason for this behavior is that the Auto Import is run as a non-
   logged-in unprivileged WordPress user (where as the manual import is run as your
   username). Unprivileged users are given less access rights by WordPress, and 
   stronger security checks are applied. For example, WordPress only allows them
   to add content with a very limited subset of HTML tags, for security purposes.
   This is why your JS code is stripped during the import. I just don’t know how
   to change this without endangering the security of the site here, sorry 🙁
 * Regards,
    Tobias
 *  Thread Starter [Rick](https://wordpress.org/support/users/rferrall/)
 * (@rferrall)
 * [6 years ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12630486)
 * That makes sense.
 * Thank you for the quick response and years of support on this great plugin.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [6 years ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12631791)
 * Hi,
 * no problem, you are very welcome! 🙂
 * Best wishes,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12646169)
 * Hi Tobias,
 * I work on a project and I wanted your opinion to know if your plugin and extension“
   tablepress talbe auto update” can work for me.
 * I have a script which update in my FTP a csv file (delete and create new csv 
   file) with the same name (TableTempMethodePlus15.csv) on this same path :
    /var/
   www/pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.
   csv
 * I tested this:
 * I imported this csv as a table in tablepress (file on server) with the path :/
   var/www/pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.
   csv
 * In “Auto Import Tables”, for my tab “tableau.csv”, I selected “Auto Import”, 
   Source Type : File on server, Perfor Auto Update : 15min, source :
    /var/www/
   pampam.tdgt.org/www/wp-content/plugins/tablepress/tab/TableTempMethodePlus15.
   csv
 * After this import, I modified some datas in the CSV to see if 15 minutes later,
   my modifications have beeen update on my tab, and it is not and I have no date
   on “Last Update”
 * You can see this on these screenshots :
    [https://gyazo.com/c58051a289710780d660dc30f0a9be61](https://gyazo.com/c58051a289710780d660dc30f0a9be61)
   [https://gyazo.com/7b95e5c52baeb7c0f500b6d93eca5d06](https://gyazo.com/7b95e5c52baeb7c0f500b6d93eca5d06)
 * I hope you will understand my problem, please let me know if my need is possible
   with your awsome plugin and extension.
 * Best regards.
    -  This reply was modified 5 years, 12 months ago by [pampam95](https://wordpress.org/support/users/pampam95/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12647478)
 * Hi,
 * thanks for your question, and sorry for the trouble.
 * Most likely, there’s something not working with the WP Cron system on your site.
   These cron jobs require active site visitors (as these are triggering them in
   the background). So, for example caching plugins can cause problems here, and
   testing this will often not work on development sites (because there are not 
   visitors).
    One idea (if the server and the service plan with the web host company
   supports them) is to use a real server cronjob, which can be more stable. The
   setup is slightly different for each company, but here’s a fairly common set 
   up guide: [https://www.siteground.com/tutorials/wordpress/setup-cron-job.htm](https://www.siteground.com/tutorials/wordpress/setup-cron-job.htm)
 * Also, you can try to use plugins like [https://wordpress.org/plugins/core-control/](https://wordpress.org/plugins/core-control/)
   or [https://wordpress.org/plugins/wp-cron-control/](https://wordpress.org/plugins/wp-cron-control/)
   to fix issues with the cron system.
 * Regards,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12764195)
 * Hi Tobias, thanks for your return, WP Cron was the problem, I disabled it and
   I confifured an external Cron on my linux.
 * I have on other question for you, as I said, I imported csv file as table in 
   tablepress.
 * This table is now updated everyday.
 * Is it possible with tablepress to highlight with a color some lines in my table
   with conditions without having datas in base?
 * Example, I have two columns in my table, and I want to hightlight every lines
   where value in column 1 is equal to “2” and value in column 2 is equal to “2”?
 * highlight means color the lines in blue for example
 * Thanks for return.
 * Regards.
    -  This reply was modified 5 years, 11 months ago by [pampam95](https://wordpress.org/support/users/pampam95/).
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12764256)
 * Hi,
 * to some degree, you can highlight rows by their value, see this approach: [https://wordpress.org/support/topic/highlight-a-row-based-on-value/](https://wordpress.org/support/topic/highlight-a-row-based-on-value/)
   
   Unfortunately, this can’t really do conditions like “column 1 AND column 2”.
 * Regards,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12764367)
 * Thanks for return, I have to understand that its impossible with tablepress to
   make conditions ? Here, I want to highlight row 1 if 2 equal 2, I think you already
   understood but it’s to be sure :p
    COLUMN1 COLUMN2 TEAM 1 2 2
 * TEAM2 3 1
 * Do you have an alternative ?
    Your plugin is awsome and it avoid me to create
   a php array and request my base… and I want to keep using it 🙁
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12764734)
 * Hi,
 * if it’s such a “simple” condition, with just one column, the link above should
   help.
    Only if you have conditions that take into account multiple columns, that’s
   not directly possible.
 * Regards,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12773648)
 * Hi Tobias, I find a solution to my precedent trouble to keep using your plugin.
 * Did you already reduce a tablepress table ?
 * I have 20 table on my page and I want to let the possibility to users to reduce
   the tables they want to.
 * If you have a code for that it will be great, I will make you a donation if you
   can help me on that.
 * Best regards.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12774123)
 * Hi,
 * I’m not sure what you mean with “reduce” here. Can you please explain that, maybe
   with an example?
 * Regards,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12774163)
 * On this page, I have several array (create with tablepress, imported as csv file):
   
   [http://pampam.tdgt.org/demo-football/](http://pampam.tdgt.org/demo-football/)
 * Every array has a name “Methode +1,5 BUTS”, “Methode +2,5 BUTS”
 * Every array has a lot of lines, I want my users have the choice to reduce the
   arrays they want, for example, to hide the first array to see only the second
   one.
 * It can be to click on a button +/- to hide or show each array.
 * Is it clear enough ?
 * Regards.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12774196)
 * Hi,
 * ah, I see. TablePress doesn’t have a native feature for this (because this is
   more a feature that a theme should offer, or another plugin).
    You could maybe
   also try this manual approach: [https://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/](https://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/)
 * Regards,
    Tobias
 *  [pampam95](https://wordpress.org/support/users/pampam95/)
 * (@pampam95)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12853261)
 * Hi Tobias, I found a solution to my precedent request.
 * An easy way to do that is to to create an accordion content on the wordpress 
   page, and I can put my table Id into 🙂
 * you can see the result here :
    [https://betseriesmax.com/demo-football/](https://betseriesmax.com/demo-football/)
 * New question, is it possible to my user if he clicks or pass the mouse on a row
   of my table to display a windows with some infos according to the row in question?
 * Best regards.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/#post-12853348)
 * Hi,
 * that’s good to hear!
 * For that new question, this might help: [https://wordpress.org/support/topic/how-to-expand-tablepress-row/#post-3741566](https://wordpress.org/support/topic/how-to-expand-tablepress-row/#post-3741566)
 * Regards,
    Tobias

Viewing 15 replies - 1 through 15 (of 39 total)

1 [2](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/2/?output_format=md)

The topic ‘Request: Auto Table Import Extension – Allow Javascript’ is closed to
new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [auto import](https://wordpress.org/support/topic-tag/auto-import/)

 * 39 replies
 * 3 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/request-auto-table-import-extension-allow-javascript/page/3/#post-13007623)
 * Status: resolved