Forum Archive - See More javascript link resetting Gtranslate.

See More javascript link resetting Gtranslate.
Apr 2, 2011 5:55 pm by [email protected]
Hi Edvard, I mentioned my problem in another thread but I'm not too sure of what to do to implement your solution. I can see the code in the extension for the product selector and there are two mentions of an expander class: echo '<li id="sm_'.$id.'" style="display:none;"><a onclick="chp_SeeMore(\''.$id.'\')" class="chp_SeeMore"><span id="indctr_'.$id.'" class="expander">+</span> <span id="lnk_'.$id.'" >'.$seemore_w1.'</span></a></li>'; } and if ($set_open) { echo '</span>'; if ($seemore_topbot=='bottom') {echo '<li id="sm_'.$id.'" style="display:none;"><a onclick="chp_SeeMore(\''.$id.'\')" class="chp_SeeMore"><span id="indctr_'.$id.'" class="expander">+</span> <span id="lnk_'.$id.'" >'.$seemore_w1.'</span></a></li>';} } If you could show me what to change these to to stop the javascript from clashing with Gtranslate I would be ecstatic. Thanks for your time. Ant.
Re: See More javascript link resetting Gtranslate.
Apr 2, 2011 6:07 pm by [email protected]
Could it be a case of order of Javacript in my page source? Would moving Gtranslate's javascript higher give it precedence over the see more link? There is also a javascript box which appears bottom right when you scroll down and clicking this does not revert it back to English. Thanks again, Ant.
Re: See More javascript link resetting Gtranslate.
Apr 2, 2011 6:45 pm by [email protected]
I understand now: echo '<li id="sm_'.$id.'" style="display:none;"><a href="javascript: return false;" onclick="chp_SeeMore(\''.$id.'\')" class="chp_SeeMore"><span id="indctr_'.$id.'" class="expander">+</span> <span id="lnk_'.$id.'" >'.$seemore_w1.'</span></a></li>'; Fixed it. Thanks for getting back to me quickly with the upgrade Edvard. Hopefully won't talk to you for a while :-) Regards, Natastna2.
Re: See More javascript link resetting Gtranslate.
Apr 4, 2011 12:24 pm by Edvard
Excellent!!!

SIMILAR TOPICS

Gtranslate MultisiteFeb 12, 2019 7:27 amReplies: 1Post by: infact_dat
Gtranslate: Error with numberFeb 20, 2019 1:20 amReplies: 1Post by: infact_dat
GTranslate 3.7.4, Joomla 3.9.3 - doGTranslate is not definedFeb 22, 2019 12:34 pmReplies: 1Post by: oase
wordpress amp link not translateDec 31, 2016 10:11 amReplies: 12Post by: besybuy
Add-on gtranslate no longer worksFeb 2, 2019 6:01 amReplies: 1Post by: DarylDixon

Try GTranslate with a free 15 day trial