Community Questions & Answers

Android WebView custom headers

Hi, I got something that needs to be resolved. I am trying to figure out how to add headers to Ti WebView's request. Right now using HTTPCilent is not an option, page must be displayed in requested domain to work, which requires security headers send from...

Webview in a View - Event Handling

I have a WebView in a View. The parent view is required to handing click event. If I click on web view, it trigger parents doThis event. I can handle the e.source but how can I fire the event for web view say I clicked on a linked on web view. ~~~ ...

adding a webview causing a crash

Hi I have a very basic app at the minute. There are 3 web views. When there is wifi from the start all three web views will load fine. I have a check in my code where the webview is only added if there is an internet connection. If there isn't, I add a...

Unable to open SHTML page

Hey Guys,I am new to Titanium.I have came across a strange problem. I have opened a website in webview although everything goes fine,But it shows problem in opening .SHTML page. Don't know why...?? Can anyone help me out.Thanks in advance

Customize Webviews

I have created a web view in my app. I want to customize this web view to only display things that I want (to hide everything else), and to change the webs background colour and such. Any way to do this?

pupup remote url in webview

i'm using webview for just link my mobile url. when i popup window ( window.open() ) for find address or find id, webview not handling this. **Uncaught ReferenceError: TiApp is not defined** below code maybe automatically inject to remote loading...

Get HTML of a WebView

Hello I have a WebView where I load some local html which queries a remote website and show results; the problem is that when the WebView is reloaded with the results is I access the html property is unchanged (has the form code). I tried to load the page...

How can I save website visited by Webview?

How can i save the whole webpage (I mean all css, images, e.g.) to access when the device goes offline? I have been searching for all morning but i found something i thought it would be helpful. - someone told to use the HTML5 manifest // yes, but it can...

html5 offline app feature and WebView

I want to build such app in which webview loads local index.html and resources which this index.html uses like css,js are fetched from remote server.Now I want to leverage html5 offline application feature.How can I do? For details. I try loading remote...

Extending TiWebView

Hello all, I'm trying to modify a TiWebView in an external module. What I'm trying to accomplish is to disable the ~~~ settings.setSupportMultipleWindows(true); settings.setJavaScriptCanOpenWindowsAutomatically(true); ~~~ which are set in the original...

Webview invalid method

version: 3.2.3 ios 7 mac 10.9.3 ~~~ <Webview id="chartView" url="http://www.google.com"></Webview> ~~~ That is causing a problem : ~~~ invalid method (createWebview) passed to UIModule ~~~ I have cleaned the project...

Having issues calling createWebView

here is the error: [WARN] Attempted to load TiUIWebViewProxy: Could not find class definition. [WARN] Exception in event callback. { line = 134; message = "invalid method (createWebView) passed to UIModule"; } here is the...

one load event trigger both WebView event

Environment: mac Titatium ios i had created two WebView in a window when the WebView loaded, every WebView transfer data to Html'js to draw a chart. however, only one WebView can draw a chart, another WebView noticed that find can't the html's js...

Webview opens keyboard on Android

Hi All I am using a webview to load a large image because imageview just doesn't work with large images. Here is my setup for the window. ~~~ exports.create = function(model) { var self = Ti.UI.createWindow({ fullscreen : false, navBarHidden :...

Local JQuery in Android

Hi everyone. I'm currently working on an app for both iOS and Android. The app needs to work without an internet connection. In my project I have a folder that contains the HTML pages, the javascript pages that load the HTML in a webview and a folder...

Can't remove window title bar in Android

I am porting an iOS app to Android and after creating a new window and webview to browse Internet, the name of the app is at the top of the display. This only happens on Android. I don't know how to remove this bar across the top. Here is my...

Open webview address in browser

I want to create a button that opens the current web view address in browser. Following is my code. Please let me know the issue ~~~ var self =Ti.UI.createWindow({ title:'Google' ]); var webview =...

Uncaught ReferenceError: TiApp is not defined

Hi, I'm getting the following error: I/TiWebChromeClient.console: (main) [41,13411] Uncaught ReferenceError: TiApp is not defined (1:) This error appears when i'm loading an url in a webview by de setUrl function. I searched the whole project for TiApp,...

Android WebView play video

Dear all, I need your help if you know how to solve it please kindly let me know. My app will launch a webview that linked to some video sites. From the counter party side there will be some javascrpts and a video play in the middle. However, I only...

evalJS not working on remote page

I can't get evalJS to work on ios iphone simulator. It returns nothing. Here is my code ~~~ var webView = Ti.UI.createWebView({ url : lien, top : 20 }); webView.addEventListener('beforeload', function(e) { alert(e); }); var...

Running remote JS code

I have a PHP file which returns some JS code like ~~~ var someVar= <script type="javascript"> some script..... </script><noscript> ...... </noscript>; document.write(someVar); ~~~ which I have been able to get from a...

how free memory webview alloy

Hello I have made an application that needs to use webview, because in a store page to display a lot of information, and have different formats. Furthermore the content is dynamic, and consult a local database. Every time I go to a different page I...

Showing 1-50 of 1,823 1 2 3 4 5 637