[Solved] translated javascript doesn't work
Aug 17, 2014 2:59 pm by Webmaster_Showlib
Aug 17, 2014 2:59 pm by Webmaster_Showlib
Hi,
I introduce a script (javascript) in my page to display and hide a set of text.
https://www.showlib.com/faq-residences
All work fine, when I click on the image, the text are displayed and hidden.
I translate it
https://www.showlib.com/en/faq-residences
When I click on the image, nothing happen and the page is reloaded.
Can you help me ?
Thank you
BR
Re: translated javascript doesn't work
Aug 17, 2014 9:20 pm by Edvard
Aug 17, 2014 9:20 pm by Edvard
Hi,
"a" tag should have a href attribute, in your case you don't have it. So I would suggest to set a href="#" and add return false; in the end of javascript onclick event like this:
<a onclick="plusmoins('pic2');cachemontre('Question2');return false;" href="#">
Thanks!
Re: translated javascript doesn't work
Aug 17, 2014 10:20 pm by Webmaster_Showlib
Aug 17, 2014 10:20 pm by Webmaster_Showlib
Done and it works well
Thanks a lot Edward
br
SIMILAR TOPICS
GT doesn't work...error 404 page | Jan 28, 2019 5:36 pm | Replies: 1 | Post by: vincenzodinuzzo |
Add links to all translated posts on every Wordpress post | Jan 14, 2019 8:51 pm | Replies: 5 | Post by: ptsniper |
flag doesn't click | Dec 10, 2018 6:52 am | Replies: 3 | Post by: maga |
Combining manually translated French pages with GTranslate | Oct 16, 2018 2:24 pm | Replies: 3 | Post by: oxygensmith |
Any ideas on what I need to configure this to work correctly | Sep 15, 2018 4:44 pm | Replies: 1 | Post by: milangomes |