Sometime we need to know the page title of the currently loaded page in webview.
Using Titanium evalJS() method we can get the specific DOM element of the page loaded in webview. Using the same we can get the page title too.
Above screen cast demonstrates the way to get page title i.e. currently loaded on the webview using Alloy in Titanium
Webview is generally used to view external website or its content at any instance of our application. Addition to this functionality we can also load html file content resides to our app directory on webview.
Here we have seen the way to load any html file content to any webview using its ‘url’ property provided by Titanium.
Using webview API in Titanium we can load external web link, we can load html file contain addition to that locally we can prepare variable holding html data and using one of the property of webview called ‘html’ we able load html string to it.
So on runtime we are able to load any html string content to any webview by assigning the same to its very own property ‘html’.
Introduction Table view may contain different sections where each of those section may contain several rows. Here I am describing the way to calculate total number of rows present in a table view which have different section.
Summary : Now easily we can get the total number of rows present on a table view with Alloy using Titanium.