Skip Navigation

[Gelöst] Problem with Firefox

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

Problem:

Clicking button trigger JS errors in Firefox browser:
Empty string passed to getElementById().

Solution:

It should be a known issue of Firefox browser, see similar thread:
https://stackoverflow.com/questions/16280684/nesting-a-inside-button-doesnt-work-in-firefox

In your case, you can display HTML "a" tags directly, and use CSS codes to style it as button.

Relevant Documentation:

This support ticket is created vor 5 Jahre, 5 Monate. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 Antworten, has 2 Stimmen.

Last updated by Luo Yang vor 5 Jahre, 5 Monate.

Assisted by: Luo Yang.

Author
Artikel
#1151425

Hi,

I've a problem with firefox.
I'have a page built with toolset and a button.

If I use Chrome the button work and the link is opened, if I use firefox the button does not work.

Can you help me?

#1151724

Hello,

It should be a CSS/browser compatibility problem, please provide the live problem page URL, I need to test and debug it in my firefox browser.

#1151754

Hi Luo, Thanks.
This is one of the page does not work:hidden link

The three buttons does not link to the relativ pages.

#1151763
click-button.JPG

Thanks for the details, I can get your website credentials here:
https://toolset.com/forums/topic/assign-repeatable-field-to-author-via-frontend/#post-1147035

And see the problem with firefox browser, when I click on the button, I can see some JS errors:
Empty string passed to getElementById().

See screenshot: click-button.JPG

It should be a known issue of Firefox browser, see similar thread:
https://stackoverflow.com/questions/16280684/nesting-a-inside-button-doesnt-work-in-firefox

In your case, I suggest you don't use <button> tag to wrap <a> tags, display <a> tags directly, and use CSS codes to style it as button.

#1151809

Thank you Luo. The problem was as you tell about the tag <button>.
Thanks for your great support

#1151829

You are welcome

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.