Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have tested this with Worklight Studio 5.0.6.20130311-0918 on Mac OSX 10.8.3, deploying on iPhone 5 iOS 6.1.3 using Xcode 4.6.2, and it worked just fine. I wouldn't think this might go different on other OS or device.</p> <p>Here is the code I've tried, starting from a fresh new Dojo hybrid WL project and aiming to mimic your description: </p> <p>1/ In test/common/test.html, use this as 's HTML content:</p> <pre><code>&lt;div data-dojo-type="dojox.mobile.ScrollableView" id="view0" data-dojo-props="selected:true"&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="label:'item 1'"&gt;&lt;/li&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="label:'item 2'"&gt;&lt;/li&gt; &lt;/div&gt; &lt;div data-dojo-type="dojox.mobile.ScrollableView" id="view1"&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="label:'item 3'"&gt;&lt;/li&gt; &lt;li data-dojo-type="dojox.mobile.ListItem" data-dojo-props="label:'item 4'"&gt;&lt;/li&gt; &lt;/div&gt; </code></pre> <p>2/ In test/common/js/test.js, use this version of dojoInit():</p> <pre><code>function dojoInit() { require([ "dijit/registry", "dojo/ready", "dojo/parser", "dojox/mobile", "dojox/mobile/compat", "dojox/mobile/deviceTheme", "dojox/mobile/ScrollableView" ], function(registry, ready) { ready(function() { var v0 = registry.byId("view0"); v0.performTransition("view1", 1, "slide", null, function(){ alert("transition done"); console.log("transition done"); }); }); }); } </code></pre> <p>This worked fine for me, including the alert box and the log message in the console.</p> <p>You say the Dojo version is 1.8.1, but this is not the Dojo version I'm seeing in my fresh install of WL 5.0.6. Can you please check the content of /dojo/version.txt? On my side, it contains "1.8.3-20130207-IBM". Do you have the same? If you don't, and if you upgraded an older WL version using an Eclipse update, I would suggest installing WL 5.0.6 from scratch. </p> <p>Also, what was the version you were using before upgrading to Worklight 5.0.6? Did you modify your code while migrating, or the change of WL version is the only change you did to your app?</p> <p>Hope this helps, Adrian</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload