[ 
https://issues.apache.org/jira/browse/OFBIZ-4121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12982763#action_12982763
 ] 

Jacques Le Roux commented on OFBIZ-4121:
----------------------------------------

Now it's arbitrary, it's set on an URL when login but does not determine really 
if javascript is enabled (usable actually) or not. 

The code is (LoginWorker.login[450...])
{code}
// check on JavaScriptEnabled
String javaScriptEnabled = "N";
if ("Y".equals(request.getParameter("JavaScriptEnabled"))) {
    javaScriptEnabled = "Y";
}
{code}

With the change above, we will now if we can really use javascript or not 
(test: can we create a cookie using javacscript and check it's there locally 
still using javascript). BTW there is maybe an easier way than creating a local 
cookie, just a quick test with an exception?

> Determine if javascript is available using jQuery cookie plugin
> ---------------------------------------------------------------
>
>                 Key: OFBIZ-4121
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4121
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>            Priority: Minor
>
> Not depend on the javascripEnabled=Y parameter passed from the login URL 
> (it's stored in the session) to determine if we use javascript or not. But to 
> use jQuery cookie plugin to test if we can create a cookie, else we know that 
> javascrip is not available

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to