# Native UI Web Views

**URL:** <https://techcommunity.softwareag.com/t/native-ui-web-views/102352>\
**Category:** Forum\
**Tags:** mobile\
**Created:** [February 1, 2013, 1:26am UTC](https://techcommunity.softwareag.com/t/native-ui-web-views/102352 "2013-02-01T01:26:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [February 1, 2013, 1:26am UTC](https://techcommunity.softwareag.com/t/native-ui-web-views/102352/1 "2013-02-01T01:26:58Z")

</div>

Hi Metismo Experts,

I am new to the product and have been teaching myself over the last week.

One of the more interesting controls I have come across is the WebViews and the ability to load raw html into the application. This would be particularly useful for complex UI development as I am more confident using HTML / CSS design techniques. I have already created a demo app which loads a jQuery Mobile page (stored inside the resource folder) however I realised there isn’t any obvious way to submit data back to the native application. So here are my questions:

· Is it possible to interact with the native application from within a WebView, either via scripts or call backs?

· What is the different between a WebView and WebViewElement control, and under what circumstances would you decide which to use?

· The WebViewCallBack interface seems to allow URLs to be rewritten when the page is loaded, is this its only function? Could this be used to intercept and handle URL requests?

Thanks & Regards,

Jack Gibson

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 1, 2013, 10:02am UTC](https://techcommunity.softwareag.com/t/native-ui-web-views/102352/2 "2013-02-01T10:02:36Z")

</div>

Hi Jack,

The WebView is something that is having its features enhanced significantly at the moment (including support for it within Phoney), sure one of the other guys on the team will be along shortly to give you a few more details on what is planned.

Regards

John

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [February 1, 2013, 11:01am UTC](https://techcommunity.softwareag.com/t/native-ui-web-views/102352/3 "2013-02-01T11:01:58Z")

</div>

Hi Jack,

Using the CallBack mechanism is a way to make the WebView and the rest  
of the app interact, yes. You’ll see an example in our NativeUIDemo  
where the CallBack triggers some JavaScript that changes the background  
colour of the WebView - a simple example, but you can imagine how this  
could be extended to much more complex scenarios, both within the  
WebView itself and outside.

As for the difference between the two components, WebView is the  
equivalent of a full screen browser, whereas WebViewElement can be used  
to inline a small browser subview amongst other Native UI elements in a  
page. Again, see our NativeUIDemo for an example of this.

Regards,

Nick.  
(Mobile Designer Development Team)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:02pm UTC](https://techcommunity.softwareag.com/t/native-ui-web-views/102352/4 "2021-04-02T15:02:53Z")

</div>


