alloy-ui

YUI on IE8: Argument not valid on dom-style.js

六月ゝ 毕业季﹏ 提交于 2019-12-02 07:20:37
问题 I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle:

Liferay portlet: redirect to an other jsp page from javascript

拥有回忆 提交于 2019-12-02 06:30:38
问题 I want to redirect to an other jsp page in a liferay portlet from js. The idea that I found is using a renderurl. The best code that I found that can help me as a first step is this one: <a id="renderURLWithJS" href=""> This render URL link is created with Javascript</a> <aui:script> AUI().use('liferay-portlet-url', function(A) { var param="Hello new jsp"; var renderUrl1 = Liferay.PortletURL.createRenderURL(); renderUrl1.setWindowState("<%=LiferayWindowState.NORMAL.toString() %>"); renderUrl1

YUI on IE8: Argument not valid on dom-style.js

ⅰ亾dé卋堺 提交于 2019-12-02 05:02:11
I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and everything works fine in all the browsers but IE8. For some reason im getting an error message regarding an invalid argument in one of the YUI core files functions regarding setStyle (what you use to add styles to a node in YUI). I have realized that IE8 is not happy with this (here's the whole YUI function) : setStyle: function(node, att, val, style) { style = style || node.style; var CUSTOM_STYLES = Y_DOM.CUSTOM_STYLES; if

Liferay portlet: redirect to an other jsp page from javascript

梦想与她 提交于 2019-12-01 23:48:40
I want to redirect to an other jsp page in a liferay portlet from js. The idea that I found is using a renderurl. The best code that I found that can help me as a first step is this one: <a id="renderURLWithJS" href=""> This render URL link is created with Javascript</a> <aui:script> AUI().use('liferay-portlet-url', function(A) { var param="Hello new jsp"; var renderUrl1 = Liferay.PortletURL.createRenderURL(); renderUrl1.setWindowState("<%=LiferayWindowState.NORMAL.toString() %>"); renderUrl1.setParameter("param",param); renderUrl1.setParameter('mvcPath', 'display.jsp'); /* is this correct???*

“A is not defined” inside of <aui:script> block

ぐ巨炮叔叔 提交于 2019-11-30 02:47:22
问题 I'm trying to extend some functionality of an existing Liferay portlet. As part of this, I would like to use Alloy UI to modify the value of a field in the portlet. There's a pre-existing <aui:script> block where I would like to define my custom function. I went ahead and tried using A.one('element') , but I am receiving the error "A is not defined." A.one() is used elsewhere in the same .jsp file, though not in an <aui:script> block, and it functions as expected. I have tried Googling this

How to add custom nodes and properties to AlloyUI diagram builder

核能气质少年 提交于 2019-11-28 13:44:18
I have been trying to use diagram builder example of AlloyUI. I need to add some extra custom node types as well as some additional properties for the nodes. I thought about modifying and then building the library but it sounds like an overkill for such a task and also I have had issues with building. Is there an easy way to do this? UPDATE I realized I could directly modify files in build folder to get rid of build process. I tried adding something like: var Lang = A.Lang, .. CUSTOM = 'custom', .. .. A.DiagramNodeCustom = A.Component.create({ NAME: DIAGRAM_NODE_NAME, ATTRS: { type: { value: