php - Jquery language change - change include with jquery -


i have 1 question. not know if possible way maybe 1 can help. imagine have 2 definitions php files, languages defined. want change files click on flag.

the aim of dont want refresh page want jquery. second thing whole structure load files div named contentwrapper. wondering creating copy of each file in language , click empty every wrapper , load files languages.

i hope understand want do.

i wanted load definition file 'flagclick' dont work. 100% server not reload definitions jquery via load. or maybe there still old definitions default file.

can give me hints?

thanks!

see if help:

bind js function 'flagclick', send ajax call corresponding php file, 'lang-en.php', 'lang-other.php'... load context json object. , use values json data replace text displayed.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -