Worklight core-web-layer.js errors

Is your core-web-layer.js the one that was created during project creation? For your issue with running on Android, if you’re using Worklight 6.0 with a new project, copy the following files from the Dojo Library project that was created alongside the Worklight project: toolkit/dojo/dojo/nls/core-web-layer_ROOT.js toolkit/dojo/dojo/nls/mobile-ui-layer_ROOT.js These files then must be added to your Worklight project’s … Read more

IBM Worklight 6.0 – Unable to run sample hybrid worklight app using dojo toolkit for android environment on avd?

Let’s back up just a bit. In nsand’s post in regard to the Console View, what he was trying to determine is if your application is using the new Dojo Library Server that was introduced in 6.0. In short, for 6.0, your application only has within it Dojo Mobile Layers. Any other resources it needs, … Read more

Struts2 .action extension causing CSS, JavaScript and Struts Dojo to break

Try to use struts action exstension with comma like this <constant name=”struts.action.extension” value=”,”/>. From the struts2 properties file: Used by the DefaultActionMapper You may provide a comma separated list, e.g. struts.action.extension=action,jnlp,do The blank extension allows you to match directory listings as well as pure action names without interfering with static resources, which can be specified … Read more

JavaScript simulate right click through code

try this instead, reason what things didn’t quite work is that the context menu is in fact bound to the oncontextmenu event. function contextMenuClick(element){ var evt = element.ownerDocument.createEvent(‘MouseEvents’); var RIGHT_CLICK_BUTTON_CODE = 2; // the same for FF and IE evt.initMouseEvent(‘contextmenu’, true, true, element.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, RIGHT_CLICK_BUTTON_CODE, null); if … Read more