SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Feb 2013
    0 Post(s)
    0 Thread(s)

    Is this possible with javascript? (language switch)

    I want it to be possible to switch between german and english by the click of a button. Is this possible to do with JS or do I have to go back-end and mess around?

  2. #2
    Just Blow It bronze trophy
    DaveMaxwell's Avatar
    Join Date
    Nov 1999
    Mechanicsburg, PA
    122 Post(s)
    1 Thread(s)
    You can do it, but you're going to need some back-end support somehow that generates the content in both German and English.

    The easy (but network-intensive way) would be to generate the content in both German and English at the same time, hiding the not wanted language by default, then using javascript to hide the default and show the alternate language.
    Dave Maxwell - Manage Your Site Team Leader
    My favorite YouTube Video! | Star Wars, Dr Suess Style
    Learn how to be ready for The Forums' Move to Discourse


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts