Get page tile that loaded on webview in Titanium

Introduction :
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.

Summary :
Above screen cast demonstrates the way to get page title i.e. currently loaded on the webview using Alloy in Titanium

THAT’S IT

Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Advertisements

Load event of webview in Titanium

Introduction :
Load is an event associated with the webview in Titanium which gets called once the page gets loaded on the webview controller.

Summary :
Using Load event we can trigger any function or event which will be fired once the page gets fully loaded.

THAT’S IT

Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Webview loaded with local html file in Titanium

Introduction :
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.

Summary :
Here we have seen the way to load any html file content to any webview using its ‘url’ property provided by Titanium.

THAT’S IT

Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Webview to load local html content in Titanium

Introduction :
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.

Summary :
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’.

THAT’S IT

Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Webview to load external web link in Titanium

Introduction :
Webview API in Titanium is used to view/load external website or its content at any instance of our application. It can also load local html file content.

Summary :

So with above video, I have demonstrated you the way to load/view any external website with webview at any instance of our app.

THAT’S IT

Presented By: Raju Mahato, Software Developer, Mindfire Solutions

Counting total rows in a table view having different section with Alloy using Titanium

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.

THAT’S IT

Written ByRaju Mahato, Software Developer, Mindfire Solutions

Display red edit button on left side of rows in a table view using Alloy with Titanium

Introduction :
For iOS we can implement the row edit functionality in a table view.
Here I am describing the same with below video.

Summary :
Following above video we have learned to display edit button along with red delete button on rows using Alloy with Titanium.

THAT’S IT

Written ByRaju Mahato, Software Developer, Mindfire Solutions