• Hey guys! I just wanna make this quick but is it possible to auto submit the import page as I already have the values hard-coded in it(view-import.php)

    So I was just wondering if it’s possible to auto submit without clicking the import button whenever I go to the import tab.

    NEED HELP URGENTLY!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter nourishing

    (@nourishing)

    Oh and I’ve tried this,

    <form id=”foo”….
    input type=”hidden” name=”action” value=”import” />
    <p class=”submit”>
    <input type=”submit” name=”submit” class=”button-primary” value=”<?php _e( ‘Import Table’, WP_TABLE_RELOADED_TEXTDOMAIN ); ?>” />
    </p>
    </form>

    function myfunc () {
    var frm = document.getElementById(“foo”);
    frm.submit();
    }
    window.onload = myfunc;
    </script>

    [No bumping. If it’s that urgent, consider hiring someone.]
    [do not bump – the ‘no bumping’ rule has not changed]

    Hi,

    thanks for your post. I’m not really sure what you are trying to achieve, but directly manipulating WP-Table Reloaded plugin files is strictly discouraged and not recommended! This will break during a plugin update!

    Can you please describe what you are trying to do here? I can then maybe suggest the best solution.

    Regards,
    Tobias

    Thread Starter nourishing

    (@nourishing)

    I’m sorry, Tobias.

    Solved and found a solution to what I wanted. Was just trying to achieve an onload event when the import page is loaded. Now all I need is for something to go to a specific URL on a daily basis. Tried using the plugin Utopia Cron or something like that but it doesn’t seem to work. Any suggestions?

    Regards,
    Imran

    Hi Imran,

    as I said, I don’t recommend this way. You will likely not only need something that goes to a specific URL on a daily basis, but something that also executes JavaScript code then.

    My assumption is that you want to automatically import a file to replace and existing table. There is a better way for that, without having to modify the plugin like this!

    Regards,
    Tobias

    Thread Starter nourishing

    (@nourishing)

    And what might that be?

    Hi,

    that way would be a “WP-Table Reloaded Extension”, i.e. a plugin for the WP-Table Reloaded plugin. I haven’t yet put this on my website anywhere, but I’ll be more than happy to email it to you with some instructions on how to use it.
    For that, please drop me a note via email, my address is in the main plugin file “wp-table-reloaded.php”.

    Regards,
    Tobias

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: WP-Table-Reloaded] Auto import URGENT!’ is closed to new replies.