Worklight integration to IBM Forms - forms

Is it possible to integrate Worklight hybrid apps to IBM Forms ?
Or is it at least possible to invoke a remote web page url during (not startup) app usage and return to the app on completion using some page events.
Btw, I'm aware of the Forms -> Portal -> Worklight integration. But that too seems to be when the entire app is just a container for the Portal web application.
Regards.

Not sure exactly what is supposed to happen after you "invoke the remote web page", so w/out knowing this I can think of right now two approaches:
Use Cordova's InAppBrowser to open an external URL w/out exiting the application
See this training module: Integrating server-generated pages in hybrid applications (sample app)

There are a number of different ways to include/launch server side content in a Worklight app. The challenge is always communication between the Worklight app and the server side app.
Putting the server side content in an IFrame allows message passing between the server based app and the worklight app, but IFrames work very badly on mobile platforms. You end up with all sorts of scrolling, layout and scaling headaches.
If direct communication isn't required, then there are a number of options that are fairly easy to implement. I have a blog post looking at different methods of including server side content in a Worklight app here.

Related

What is the difference between web servers (apache,ignix etc) and web frameworks(flask,rails etc)?

Aren't both necessarily the same thing? While frameworks seem to have extra features to help ease development?
A web server is a program that takes a request to your website from a user and does some processing on it. Then, it might give the request to your Rails app.
An app server is the thing that actually runs your Rails app.
See more in http://www.justinweiss.com/articles/a-web-server-vs-an-app-server/

Can the browser access to camera (independent of OS) and other applications on the laptop?

we want to create an internet platform, where for registered users the following is done:
1) Tracking of the applications they open during they are "checked in" on the page
2) Tracking of their web surfing
3) In regular periods a picture is automatically taken by the built-in camera of the laptop (not Smartphone) and uploaded to the platform.
I know, sounds like brave new world;)
Is a server-sided framework like Rails with client code in JQuery sufficient for it?
Or is an own client application in e.g. objective-C for MacOS necessary?
Thanks,
R
You can do 2 using almost any of the web application frameworks + javascript.
1 is impossible unless the there is an application running in the desktop or a browser extension that is communicating with your website.
However the 3 sounds very alarming from a privacy standpoint. But if the users are willing and is aware of it then it's not an issue.
As far as I know, JavaScript does not natively support accessing the web camera. But Flash does!
Fortunately for you there is a library which combines both Flash and JavaScript that can take a web cam snapshot. It's called jpegcam. There seems to be another one called jquery web cam plugin. Also read this question - https://stackoverflow.com/questions/3922723/using-a-webcam-with-javascript

How GWT and PhoneGap works together?

I have been working with GWT projects, and the scenario with GWT is that it is compiled then deployed to a web server (like Tomcat), however I want to try out PhoneGap, so I can develop a Android / Iphone app using a single code base and perhaps using the familiar web-style UI.
If I use GWT with PhoneGap, would the application still need a back-end web server to display the UI?
The answer to your specific question is no, you do not necessarily need the back end web server to display the UI. That does not mean that your application will seamlessly work in phonegap though. If you limit your GWT app to just client side code and call services outside of the GWT app you should be producing a web app that you can grab all of the content of the war minus the WEB-INF directory and drop it into phonegap (or the web server of your choice) and run the app without a java application server. I have had very good success with running my applications on Apache HTTPD Server this way. I have had limited success running it in PhoneGap though. Some parts of the applications function fine, others do not. So you will have to do quite a bit of testing to find out what works and what doesn't and then restrict your work accordingly but in principle it is possible to use GWT for developing a UI to use in PhoneGap.

Developing Google gadgets with GWT

I successfully created gadget using Getting Started with Gadgets and GWT
I want to know:
Is it possible to work on gadgets in development mode? I want to change the code and see the results. Or i need to compile and publish the gadget every time i change code?
I want my GWT GAE application to be both normal GWT app and a google gadget. When user enters http://mygadget.appspot.com/ i want him to see normal GWT app. But when user access http://mygadget.appspot.com/axogadget/com.axdms.gadget.client.AxObjectGadget.gadget.xml he gets the gadget. Is it posible? Or it has to be 2 different GAE applications? (Normal GWT app and gadget have different functionality). Multiple entry points?
yes using apache shinding, but it is still a hassle.
multiple entry points can work for you but you have to differentiate on how you make your calls to the server. Normal GWT app can use RPC for example but Gadgets must use IoProvider.

iPhone Web Appication deployment and distribution process

--I haven't develop any iPhone Web Application ever...so i am little bit confuse about that.
--I want to build a Web Application for iPhone which will be made using(CSS+JavaScript).
--I read some where that no approval is required for iPhone Web Application.
is it correct ?
--And if i have made my iPhone Web Application (using CSS+JavaScript)and uploaded at my server.
--and if i want to open it in UIWebView using iPhone SDK simply...
--is this Application is valid for iPhone Web Application portal https://adcweb.apple.com/iphone/index.php or not ?
--how can end users get the Application on their iPhone after submiting to the portal...
--can any one explain me the whole process of iPhone Web Application deployment and distribution process ?
Thanks in advance...
iPhone (and others) have support for "stand alone" web apps. These are web apps that are designed to work offline. These applications are hosted on the web, but along with the application is a manifest file that describes all of the resources that the application will need. These resources are all downloaded to the device.
On the iPhone, to "install" one of these applications, you need to simply bookmark it. When you bookmark the app, the phone asks if you want an icon for it in the standard app area, vs just a bookmark in the browser.
Once bookmarked, the user can simply tap on the icon like any other application. This will launch safari for your application, and it starts using its local resource. There's no reason a standalone application that never touches the internet can't be written. The Safari Reference Library has a lot of information on this.
If you'r building a web application, we talk about something, that does not need to be installed on the iPhone, because it runs inside the browser. So yes, you don't have to go through the approval process, it's just a website optimized for the iPhone. The submission you linked to in your question is to get listed at apple with your web application (I'm not sure about the guidelines for that), it,s not a submission for the app store. You don't have to (and you should not) make use of the SDK by using UIWebView, because that would mean to build an native application which needs approval, has to be installed etc. If your goal is or can reached by building a web application, all the user needs is safari.
You do not need approval for a web application. The iPhone can view any web page through its browser (as long as there's no flash), so just implement your application as you normally would, but design for the smaller screen. The submission form is just for listing in portals (I don't know which portals).
If you want to make a native iPhone application that talks to the server, then you need to sign up for a developer account and develop the application in Objective-C (with the help of UIWebViews, which are essentially embedded browser windows). That will require approval.
What about a web application that needs to be installed. By that I mean an application that consists of a web page (with embedded CSS and Javascript) that uses HTML5's localStorage to work offline. You still need to be able to access the page itself if you lost the connection, i.e. the page needs to be stored locally, because once you are offline, you can't access it from a server outside...