EvalJS working inconsistently passing variable to WebView
Hi. I am calling a form in a WebView and passing variable data from local js to the html form in the WebView. Here's the weird thing. The code below WORKS the first time it is called. Once the form is...
View ArticleBlackberry no return value with evalJS
I try to access a Javascript variable within a Blackberry z10 webview with evalJS. This works fine: web.evalJS("alert(document.URL)"); opening an alert-Box with the URL of the document. Basically...
View ArticleWebview current url for blackberry.
Hi All, I have added a webview to my window as shown on below. <Alloy> <Window> <WebView top="150" id="webContent" width="300px" height="300px" borderColor="red" borderWidth="2px"...
View ArticleUsing evalJS to call function inside webview
I am having trouble calling a function inside my webview from my code in titanium. I simply want to pass a value from my slider to my google charts functionality to redraw my chart. Anybody ever tried...
View ArticleevalJS not working with passing variables
I am using evalJS to attempt to call a function in a webview and pass a parameter to that function. It will work perfectly if I pass a string but if I try to pass a variable nothing happens.var...
View ArticleevalJS makes trouble SDK 3.2.0.GA
Here my simple code:var win = Ti.UI.createWindow(); var webview = Ti.UI.createWebView({ url : 'http://www.appcelerator.com/', }); win.add(webview); win.open(); webview.addEventListener('load',...
View ArticleevalJS not working with Android but is fine in iPhone
using Android version 4.4 with Titanium 3.2.0 GA. This code returns null on Android but works fine in iPhone. var currentResolution = webView.evalJS('$("#txtResolution").val();'); currentResolution is...
View Articlewebview evalJS never work
i tried multiple times to use evalJS on a webview but it always return null i am using 3.1.2 Ti developing for android here is my code var window = Titanium.UI.createWebView({ height : "100%", width :...
View ArticleHow can I get EvalJS to work on Android?
Hi there, I have tried several different SDK's and none of them work. the evalJS javascript function simply does not work on android devices or android emulator....
View ArticleAndroid localstorage,sessionstorage, cookies etc...
Dear Titanium Community, I have been stuck on a bug for several days. Basically, I am trying to loop through all the <a> links on a remote web page in a Titanium webview. I am dynamically adding...
View ArticlePass Details to Remote 3rd Party Form
Hey folks, I'm doing some research on trying to pass data to a form. What I am hoping to do is pass some data from my app into a remote webpage that I don't control. The remote page is a third party...
View ArticleUsing evalJS to update a html text area value (passing args with evalJS)
I'm using titanium 3.3.0 Alloy project with a webview Im attempting to use a webView with a text area to display a string which I pass from my controller....
View ArticleTitanium Android : Passing data to Webview using EvalJs is not working.
Hi, I have a titanium js file(Alloy controller) from which I need to pass data to a webview (Html file).I have been using this method. webview.addEventListener('beforeload', function(e) { var obj = {...
View Articlecreate video download application
Hi, I'm trying to create app like (Free Video) on AppStore, that can downloading any video, I know the code to download any link, like this : var videolink = /// here need to get video link which want...
View ArticlePass variables from Titanium .Js to Html webview
Greetings I have 2 files: a Titanium .Js and a HTMLfile within my project assets. I need to pass a variable from my .Js to my HTMLfile; but I do not know how to do that; I tried: triangulos.evalJS("var...
View ArticleAndroid : Passing data from webview to titanium
Hi, I just want to pass some some data to web view before page has been loaded.I am not able to do it for android This question has been asked as the continuation of other 2 questions:...
View ArticleActionBar.onHomeIconItemSelected() breaks evalJS() on Android 5.0 Lollipop
Unless I'm just plain doing something wrong, something is broken on 5.0 (using Ti 3.3.0 or 3.4.1 — doesn't matter which.) What I need to do is, after the home/back button is tapped on the ActionBar,...
View ArticleevalJS returns nothing on iOS, but works on Android
Fairly simple question. I'm trying to evalJS the document object for testing evalJS on my webview which is loaded to a remote webpage. var test = $.webview.evalJS("document"); alert("DATA: " + test);...
View ArticleCommunicate with remote web view
I've looked through the appcelerator docs and there is apparently no way to communicate from the app to a webview connected to a remote website. The only thing I found was using evaljs but that only...
View ArticleTimeout waiting to evaluate JS - evalJS not working
Hello, I am using Titanium SDK 3.5.1.GA and android SDK 21. In my code i am using evalJS to read a value from the webview. When testing this on Galaxy S4 (Android 4.4.2) it gives me the timeout error....
View Article