HTML5 introduces Web Notifications API which “allows alerting the user outside the context of a web page of an occurrence, such as the delivery of email“. This opens up quite a few possibilities for developers like alerting a user when a document needs approval irrespective of the XPage he is currently on.
In this example I will use the Extension Library control Remote Service to poll a view to check if any documents require approval and if yes then show notification to user.
HTML5 provides bevy of features which enable developers to build some really interesting applications. In this example I will build a small HTML5 based validation which will vibrate the mobile device in case of invalid input.
Validation in HTML5 is as simple as adding an attribute. Just add the required attribute and you are good to go.
In the above code snippet the text field is required and browser supporting this attribute will not let you submit the form if the field value is empty.
This article describes Vibration API and how easy it is to implement.
Many a times during XPages development I have encountered error message like CLFAD####E and sometimes CLFAD####W. The error messages are very cryptic and give very little information and you might see something like this:
In this article I will describe how to use navigator.getUserMedia() in your XPage and save the captured image in your Notes document. As of now this demo is supported only on Google Chrome & Mozilla Firefox on desktop and mobile (I have tested it on Andorid only).
HTML5 introduces <video> tag which allow developers access to user’s camera.
I am also going to add a text area to my XPage where I will store the Base64 encoded text of the captured image which later would be converted into image using Java (code for that comes later in article). While developing applications you can hide this text area using CSS.