aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig" Watch "Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig" New topic
Author

Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig

seena mathew
Greenhorn

Joined: Jun 14, 2009
Posts: 20
I am having issues with setting the locale on the dojo editor. I have a scenario where in
  • JSP1: language value is input and the value is submitted as a hidden variable
    JSP2: DOJo editor is displayed based on the language.I would like to set the locale of the dojo editor.


  • I am trying to retrieve the hidden variable value but the editor always shows with "en" locale. I have done "View Source" on the page and the hidden variable is populated with the correct parameter

    How can I build the locale based on hidden parameter value? Any advice to resolve it will be great.


    seena mathew
    Greenhorn

    Joined: Jun 14, 2009
    Posts: 20
    Resolved it by moving the scripts related to dojo from head tag to inside the body tag and then could get the hidden variable value and set the dojoConfig object
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Issue when retrieveing the hidden variable in script and setting the locale of dojoconfig