Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery Translation

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27267

    Hello Friends,

    I was recently working on a multi lingual site and to implement the multi lingual feature, I used this jQuery translation plugin to achieve my goal.

    http://code.google.com/p/jquery-translate/wiki/General

    The demo of the plugin uses an ‘ul’ list to display the list of available languages. Its pretty easy to convert it to a drop down menu but the problem am facing is that when I convert it to drop down menu, I am unable to save the selected language in the cookie. I did a lot of research on their discussion forum and found this code which works perfectly on jsbin but not when I create a file with it :| http://jsbin.com/exewe/edit

    I am sure am missing out something very trivial somewhere..

    Here is the code:

    Code:







    Sandbox


    Hello from JS Bin

    “Hello World – this was inserted using JavaScript”


    #68438

    Okay, I solved the problem. It seems like the code was working fine in all the browsers except Google Chrome. After doing some research I found the solution to the problem which actually wasn’t even a problem lol.

    Chrome is one of my favourite browsers and the fact that the code was working fine in all the browsers except it, was bugging me a lot. After doing some research, I came to the conclusion that Google Chrome is very strict about its security features and hence it does not allow cookies to be generated by webpages on the hard drive.

    Hence, the code works fine in Chrome if it is hosted on a web server. The other alternative is to enable chrome to create cookies for files.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.