samqty/jGeez

The Language Toggle Button Stops working after an AJAX call

samqty opened this issue · 0 comments

On behalf of: Getenet Seifu

Well what happened was, I downloaded and configured your source code files which worked well. I used the Sample 2: Data entry with small Geez/English Toggle with E and አ. But the weird thing starts to happen when after this ajax code starts to run. The toggle button stops to toggle anymore. I tried to google this problem but no solution till now. They suggest to replace .bind() function that you've used in your jquery.jgeez file to .on() or .live() functions which came with no fruit. I'm stuck here now. Hope you'll have something to say.

Sami, the code is in php and a bit junky. i just tried to filter and highlight the ones related to our point. As you see the first 3 highlighted ones are just the jgeez references. The last highlighted one is the ajax call which disabled the toggle button after it started to run.

<script type="text/javascript"> <script type="text/javascript" src="http://localhost/development/static/jscript/jquery/jquery.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> <script type="text/javascript" src="http://localhost/development/static/jscript/jquery/ui.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> <script type="text/javascript" src="http://localhost/development/static/jscript/main.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> <script type="text/javascript" src="http://localhost/development/static/jscript/ajax.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> <script type="text/javascript" src="http://localhost/development/static/jscript/jGeez/scripts/jquery.jgeez.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> <script type="text/javascript" src="http://localhost/development/module/theme/static/jscript/design.js?v=eee5daa925023a4bf5b08905f9dd4f16"/> $(document).ready(function () { $("#header_sub_menu_search_input").jGeez( { 'englishbutton': 'englishtoggle', 'geezbutton': 'geeztoggle' }); }); </script> <script src="chrome-extension://bmagokdooijbeehmkpknfglimnifench/googleChrome.js"/>
<script type="text/javascript">
page=1

View More