• Resolved Growltiger

    (@growltiger)


    I hope you can help me solve this problem using TablePress, even though I do not think there is a bug in TablePress (which is wonderful). I have spent a long time searching the internet with no luck. I’m sure there are other users who would benefit from the answer.

    I have a big table and I need to jump from another page into the table, at various points down the table.
    I inserted anchors in the first column, like this:
    Some text here
    Then jump to the page using #link123 at the end of the url.
    This works perfectly in Firefox and Chrome, but not in Internet Explorer or Edge, which jump somewhere near but not to the right place. (All latest versions of browsers).
    I also tried putting some text in the anchor, like this:
    TextSome text here
    but it made no difference.

    Given your knowledge of tables and your very many users,perhaps you know a solution or workaround? Thank you.

    https://ww.wp.xz.cn/plugins/tablepress/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Can you please post a link to the page with the table where this problem happens, so that I can take a direct look? Thanks!

    Regards,
    Tobias

    Thread Starter Growltiger

    (@growltiger)

    I have some test pages I can experiment with, that show the problem. First go to this page:
    http://www.ouspenskytoday.org/wp/the-record-of-shankaracharya-audiences-index-b/
    Look at the 9th row down, which has the word “Beauty” on the left. On the right end of that row is a link “Story”. Click on that link.
    In Firefox or Chrome you will see the relevant story at the top of the window.
    In Internet Explorer or Edge you won’t, it will be visible but just somewhere in the window.
    I’m hoping there is something I can do to make it work in all browsers.
    Thanks.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    from what I can see, those links are all going to PDF files? I can then only assume that only FIrefox and Chrome interpret those extra information about the link target for PDF files, while IE and Edge don’t. Thus, this might be a limitation of the links going to PDF and not HTML files.

    In any case, this is not caused by TablePress in any way, so that I can’t really recommend next steps here :-/

    Regards,
    Tobias

    Thread Starter Growltiger

    (@growltiger)

    No, you are clicking in the wrong place. Go to the right hand end of the row that starts with the word Beauty. It says:
    Story of Holy Man who saw beauty of God in beautiful woman. See also: Story
    Click on the word Story.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    ah, my bad. Sorry for the confusion.

    The reason for this might be quite simple: There’s a / missing before the #, which still belongs to the permalink.
    So, please try using the URL

    http://www.ouspenskytoday.org/wp/the-record-of-shankaracharya-audiences-index-stories/#holy-man-and-beautiful-woman

    instead of

    http://www.ouspenskytoday.org/wp/the-record-of-shankaracharya-audiences-index-stories#holy-man-and-beautiful-woman

    (Without the /, WP probably triggers a 302 Redirect, in which IE drops the link target, but the the other browsers don’t.)

    Regards,
    Tobias

    Thread Starter Growltiger

    (@growltiger)

    Thank you for the suggestion, that is most helpful. I have made that change and it now also correctly works in Safari, which didn’t work at all before.
    Unfortunately Internet Explorer and Edge still don’t work properly. What is extraordinary is that the first time you click the Story link it always works perfectly. But if you go back to that page and do it again, it doesn’t, it goes to the wrong place. Even refreshing the Story page doesn’t work, it keeps going to the wrong place.
    What seems to be happening is that it is ignoring the end of the URL on subsequent visits, and it opens the page at more or less the same position that you left it at previously. I can’t understand this.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yeah, this sounds really strange then. However, I can only assume that this is caused by IE itself. The HTML code is totally correct from what I can see, and TablePress is doing nothing to change or influence this behavior.

    Some ideas that you could maybe test:
    Change

    <a id="link-target"></a>

    to

    <span id="link-target"></span>

    or

    <a name="link-target"></a>

    Maybe the other HTML codes are recognized better by IE.

    Regards,
    Tobias

    Thread Starter Growltiger

    (@growltiger)

    Thanks for the suggestions. Using name= is officially deprecated so I didn’t want to try that (I doubt it would help.)
    I tried <span id= and it works exactly the same as <a id=, no different.
    So I can find no solution.
    I’m sure the important clue is that it always works the first time.
    Thanks for your help.

    Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    yes, it might be some caching in IE then, or something like that.

    Regards,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Problem jumping into table using anchor’ is closed to new replies.