Welcome, Guest
Username: Password: Remember me

TOPIC: Get current language

Get current language 3 years 1 month ago #64143

  • madopr
  • madopr's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 26
  • Karma: 0
I have a survey with two languages. When it ends, I call a php file. I need to pass the current language to that file. Is it possible?
The administrator has disabled public write access.

Re: Get current language 3 years 1 month ago #64179

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4206
  • Thank you received: 790
  • Karma: 360
The following JavaScript snippet should return the lang attribute:
document.write($('html').attr('lang'));
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.094 seconds
Donation Image