Forums de discussion

browser and language parameter issue

Pankaj Kumar, modifié il y a 7 années.

browser and language parameter issue

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
Hi team,

I am getting below issue in my liferay development environment due this my other js are not working properly .if i run my application
in other browser like Firefox its works fine.Below issue is coming on Chrome.I am using liferay 6.2 EE version.

https://liferaydev.lifecare.com/combo/?browserId=other&minifierType=&languageId=en_US&b=6210&t=1461584685000&/html/js/aui/event-move/event-move-min.js&/html/js/aui/event-flick/event-flick-min.js&/html/js/aui/event-valuechange/event-valuechange-min.js&/html/js/aui/event-tap/event-tap-min.js

Please help me on this how can i stop this issue.

Thanks & Regards,
Pankaj Semwal
thumbnail
Samuel Kong, modifié il y a 7 années.

RE: browser and language parameter issue

Liferay Legend Publications: 1902 Date d'inscription: 10/03/08 Publications récentes
What's the issue? You never stated what is the issue.
Pankaj Kumar, modifié il y a 7 années.

RE: browser and language parameter issue

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
Hi Samuel,

The issue when we do some operation in our site our application js does not works as when i check in console i was getting below js issues.
In other browser i did not see below error.

YUI.add("aui-url",function(e,t){function E(e){var t=this;if(!e)throw"An URL should be specified.";t._indexParts(e),t._indexParameters()}var n=e.QueryString,r="",i="#",s="?",o="://",u=0,a=1,f=2,l=3,c=4,h=5,p=6,d=7,v=8,m=9,g=10,y=11,b=12,w=13;E.URI_REGEX_RFC3986=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,e.mix(E.prototype,{_source:undefined,_protocol:undefined,_authority:undefined,_user_info:undefined,_user:undefined,_password:undefined,_host:undefined,_port:undefined,_relative:undefined,_path:undefined,_directory:undefined,_file:undefined,_query:undefined,_anchor:undefined,_parameters:undefined,addParameter:function(t,n){var r=this;r.setParameter(t,r.hasParameter(t)?e.Array(r.getParameter(t)).concat(n):n)},addParameters:function(t){var n=this;e.each(t,function(e,t){n.addParameter(t,e)})},hasParameter:function(e){var t=this;return t._parameters.hasOwnProperty(e)},getParameter:function(e){var t=this;return t._parameters[e]},getParameters:function(){var e=this;return e._parameters},getAnchor:function(){var e=this;return e._anchor},getAuthority:function(){var e=this;return e._authority},getDirectory:function(){var e=this;return e._directory},getFile:function(){var e=this;return e._file},getHost:function(){var e=this;return e._host},getPassword:function(){var e=this;return e._password},getPath:function(){var e=this;return e._path},getPort:function(){var e=this;return e._port},getProtocol:function(){var e=this;return e._protocol},getQuery:function(){var e=this;return e._query},getRelative:function(){var e=this;return e._relative},getSource:function(){var e=this;return e._source},getUser:function(){var e=this;return e._user},getUserInfo:function(){var e=this;return e._user_info},removeParameter:function(e){var t=this;delete t._parameters[e],t._indexParameters()},removeParameters:function(t){var n=this;e.each(t,function(e,t){n.removeParameter(t)})},setParameter:function(e,t){var n=this;n._parameters[e]=t,n._indexParameters()},setParameters:function(t){var n=this;e.each(t,function(e,t){n.setParameter(t,e)})},setAnchor:function(e){var t=this;t._anchor=e},setAuthority:function(e){var t=this;t._authority=e},setDirectory:function(e){var t=this;t._directory=e},setFile:function(e){var t=this;t._file=e},setHost:function(e){var t=this;t._host=e},setPassword:function(e){var t=this;t._password=e},setPath:function(e){var t=this;t._path=e},setPort:function(e){var t=this;t._port=e},setProtocol:function(e){var t=this;t._protocol=e},setRelative:function(e){var t=this;t._relative=e},setSource:function(e){var t=this;t._source=e},setUser:function(e){var t=this;t._user=e},setUserInfo:function(e){var t=this;t._user_info=e},toString:function(){var e=this,t=[];return e._protocol&&t.push(e._protocol,o),t.push(e._authority,e._path),e._query&&t.push(s,e._query),e._anchor&&t.push(i,e._anchor),t.join(r)},_indexParameters:function(){var e=this;e._parameters||(e._parameters=n.parse(e._query||r)),e._query=n.stringify(e._parameters)},_indexParts:function(e){var t=this,n=E.URI_REGEX_RFC3986.exec(e);t._source=n[u],t._protocol=n[a],t._authority=n[f],t._user_info=n[l],t._user=n[c],t._password=n[h],t._host=n[p],t._port=n[d],t._relative=n[v],t._path=n[m],t._directory=n[g],t._file=n[y],t._query=n[b],t._anchor=n[w]}},!0),e.Url=E},"2.0.0",{requires:["oop","querystring-parse","querystring-stringify"]});YUI.add("querystring-parse",function(e,t){var n=e.namespace("QueryString"),r=function(t){return function r(i,s){var o,u,a,f,l;return arguments.length!==2?(i=i.split(t),r(n.unescape(i.shift()),n.unescape(i.join(t)))):(i=i.replace(/^\s+|\s+$/g,""),e.Lang.isString(s)&&(s=s.replace(/^\s+|\s+$/g,""),isNaN(s)||(u=+s,s===u.toString(10)&&(s=u))),o=/(.*)\[([^\]]*)\]$/.exec(i),o?(f=o[2],a=o[1],f?(l={},l[f]=s,r(a,l)):r(a,[s])):(l={},i&&(l[i]=s),l))}},i=function(t,n){return t?e.Lang.isArray(t)?t.concat(n):!e.Lang.isObject(t)||!e.Lang.isObject(n)?[t].concat(n):s(t,n):n},s=function(e,t){for(var n in t)n&&t.hasOwnProperty(n)&&(e[n]=i(e[n],t[n]));return e};n.parse=function(t,n,s){return e.Array.reduce(e.Array.map(t.split(n||"&"),r(s||"=")),{},i)},n.unescape=function(e){return decodeURIComponent(e.replace(/\+/g," "))}},"patched-v3.11.0",{requires:["yui-base","array-extras"]});
thumbnail
Samuel Kong, modifié il y a 7 années.

RE: browser and language parameter issue

Liferay Legend Publications: 1902 Date d'inscription: 10/03/08 Publications récentes
The snippet you posted looks like JavaScript. It doesn't look like an error. So I'm still don't know what is the issue.
Pankaj Kumar, modifié il y a 7 années.

RE: browser and language parameter issue

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
Hi Samuel,

In my application i used aui-tree-view tree to show the categories and subcategories.But whenever i found the below error in console
tree does not load in my application.

Uncaught SyntaxError: Unexpected token : https://localhost/combo/?browserId=other&minifierType=&languageId=en_US&b=6210&t=1461721935000&/html/js/aui/color-base/color-base-min.js&/html/js/aui/base-core/base-core-min.js&/html/js/aui/base-observable/base-observable-min.js&/html/js/aui/dd-ddm-base/dd-ddm-base-min.js&/html/js/aui/dd-drag/dd-drag-min.js&/html/js/aui/dd-ddm/dd-ddm-min.js&/html/js/aui/dd-ddm-drop/dd-ddm-drop-min.js&/html/js/aui/dd-drop/dd-drop-min.js&/html/js/aui/dd-drop-plugin/dd-drop-plugin-min.js&/html/js/aui/dd-delegate/dd-delegate-min.js&/html/js/aui/dd-proxy/dd-proxy-min.js&/html/js/aui/aui-widget-cssclass/aui-widget-cssclass-min.js&/html/js/aui/aui-widget-toggle/aui-widget-toggle-min.js&/html/js/aui/aui-tree-data/aui-tree-data-min.js&/html/js/aui/transition/transition-min.js&/html/js/liferay/ajax_session.js&/html/js/aui/aui-tree-io/aui-tree-io-min.js&/html/js/aui/aui-tree-paginator/aui-tree-paginator-min.js&/html/js/aui/aui-tree-node/aui-tree-node-min.js&/html/js/aui/aui-tree-view/aui-tree-view-min.js

<
script async&gt;
				YUI().use(
					  'aui-tree-view',
					  function(Y) {
						var children = &lt;%= catJson %&gt;;

					    new Y.TreeView(
					      {
					        boundingBox: '#myTreeView',
					        children: children, 
Pankaj Kumar, modifié il y a 7 années.

RE: browser and language parameter issue

Regular Member Publications: 101 Date d'inscription: 27/07/14 Publications récentes
When i added below property in portal-ext.properties file the above js error now not coming.

javascript.fast.load=false

Still confused why this happeing..........emoticon