[Solved] translated javascript doesn't work

Popular automatic website translation tool

[Solved] translated javascript doesn't work

Postby Webmaster_Showlib » Sun Aug 17, 2014 6:59 pm

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
Webmaster_Showlib
 
Posts: 12
Joined: Thu May 08, 2014 2:47 pm

Re: translated javascript doesn't work

Postby Edvard » Mon Aug 18, 2014 1:20 am

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!
Regards,

Edvard Ananyan - GTranslate Team

Please leave your feedback on your CMS plugin directory. It is very important for us!
Google Translate Joomla
Google Translate WordPress
Google Translate Drupal
Edvard
Site Admin
 
Posts: 4185
Joined: Mon Jun 28, 2010 1:54 pm
Location: Yerevan, Armenia

Re: translated javascript doesn't work

Postby Webmaster_Showlib » Mon Aug 18, 2014 2:20 am

Done and it works well :)

Thanks a lot Edward

br
Webmaster_Showlib
 
Posts: 12
Joined: Thu May 08, 2014 2:47 pm


  • Related Topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 0 guests

2GLux
cron