ibm-mobilefirst

Splash Screen with busy Indicator in worklight app

心已入冬 提交于 2019-12-02 15:08:11
问题 I am working on a new app where it is needed to add a busy indicator or progressive bar in the splash screen . It is a hybrid app . So the implementation should in Web resources(html, js and css) and the app is done in worklight so the implementation should also be in worklight . Do you have any suggestion to solve this issue 回答1: In Hybrid applications the ability to control over the splash screen (= change its appearance, duration, and other things like that), is currently not possible in

IBM Worklight - Navigation errors in a multipage app

孤者浪人 提交于 2019-12-02 14:49:15
问题 I am developing a hybrid application in IBM worklight using jQuery Mobile. My application folder structure is like this: carbikepooling.html (default file created in jquerymobile app) pages folder, contain files: ownerProfile.html, passengerProfile.html, createPool.html Also validateForm.js is associated with carbikepooling.html, ownerProfile.js with ownerProfile.html, createPool.js with createPool.js From carbikepooling.html, I change page to ownerProfile.html placed in the pages folder:

IBM Worklight - Page fragmentation

走远了吗. 提交于 2019-12-02 14:39:04
问题 I am trying to migrate existing phonegap project into worklight. Phonegap app is using $.mobile.changePage() for page navigation. Will this function reload the existing DOM or creates a new DOM. As worklight suggest to use single DOM object, if I use $.mobile.changePage() will it have any impact on worklight application behaviour. 回答1: Please read the following IBM Worklight Getting Started training module: Building a multi-page app (sample project). jQuery.mobile.changePage() http://api

IBM Worklight 6.1 - Content of HTML file not displayed

╄→尐↘猪︶ㄣ 提交于 2019-12-02 14:26:29
I have recently downloaded the IBM Worklight Developer edition from the Eclipse Marketplace. In order to deploy the app when I right-click on the HTML file and choose Run As > Run On Server . It then asks me to select Localhost which is running on my machine. When the index.html file is displayed in the window, a blank page comes and the contents of the body of my HTML file are not visible. I am unable to build and deploy and run any project in IBM Worklight. It is not working for you, because you are doing it wrong... Read the IBM Worklight Getting Started training materials before jumping

IBM Worklight - How to pass parameters from the application to the adapter?

二次信任 提交于 2019-12-02 13:40:07
问题 I want to pass parameters from the application to the adapter; I want the users of the app to enter these options. Right now I am passing the parameters like this in adapter: function getFeeds() { WL.Logger.debug("inside method"); var input = { method : 'get', returnedContentType : 'json', path : "ios/clientRegister.php", parameters:{ "employeenumber":"500","employeename":"Harish","employeeemail":"anand5@gmail.com","city":"Delhi", "employeeadID":"an6458","businessUnit":"WASE","country":"India

IBM Worklight 5.0.6 - How to add a splash screen to Android environment?

ぐ巨炮叔叔 提交于 2019-12-02 13:25:32
I am facing an issue while trying to add a splash screenin Android. Below is the code I used public void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.bindBrowser(appView); super.loadUrl(getWebMainFilePath(), 5000); } I see the splash image, but then after few minutes I get a blank screen and the app crashes. When using Worklight, you can show splash screen in onWLInitCompleted method and leave onCreate method as default. Below code test on Nexus 4, Andriod 4.2.2. @Override public void

Worklight 6.1 Android Applicaiton renders all views with no widgets

耗尽温柔 提交于 2019-12-02 13:19:57
问题 I've developed a hybrid application using Worklight 6.1 + Dojo 1.8. The application tests out fine using Chrome "Common & Android". When I deploy the device to my Nexus-7 Tablet running 4.3 all of my views appear together, and the dojo widget are simply text content. I reviewd a previous post titled : " Worklight mobile app doesn't load dojo mobile widgets on android 4.x devices " I'm experiencing the same situation, and I also, have followed the steps mentioned in several posting found

Worklight 6.2 Android Application not launching on push notification

試著忘記壹切 提交于 2019-12-02 13:08:50
问题 I am attempting to get push notifications to work on an Android environment app written in Worklight 6.2. I have gotten the app to receive push notifications, but when I tap on the notification in the status bar, it clears the notification but does not launch the app. I have looked at the answer here, IBM Worklight 5.0.6.1 - Not getting Push Notifications when phone/app is closed, but changing the app_name string back to the original name of the app, as the accepted answer suggests, does not

IBM Worklight - Cannot register to event source callback with an existing alias. The alias is already in use for event source

本秂侑毒 提交于 2019-12-02 13:01:32
问题 I am using IBM Worklight 6.0.0 and testing on iOS 7 device. I have the following js error: Cannot register to event source callback with an existing alias: 'myPush'. The alias is already in use for event source 'PushEventSource'. On device, when I login, logout then login again. (error appear the second time) On the client side, my code is: if (WL.Client.Push){ WL.Client.Push.onReadyToSubscribe = function(){ WL.Logger.debug("onReadyToSubscribe"); WL.Client.Push.registerEventSourceCallback(

Worklight and jquery: I want fetch links present in the xml and want tag them with the row dynamically?

我们两清 提交于 2019-12-02 13:00:56
问题 Above attached my image that fetched it remote server its shown as row in the contents page. I have link in the same xml, i want to tag that link to this row and clicking it user should take should be loaded with page. How can i fetch that? function displayFeeds(items){ var ul = $('#itemsList'); for (var i = 0; i < items.length; i++) { var li = $('<li/>').html(items[i].title); var l = $('<li/>').html(items[i].link); ul.append(li); } This is how I fetch the contents of the xml. I am also