Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (evaljs)
Browsing latest articles
Browse All 83 View Live

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 Article


Blackberry 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 Article


Webview 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 Article

Using 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 Article

evalJS 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 Article


evalJS 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 Article

evalJS 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 Article

webview 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 Article


How 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 Article


Android 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 Article

Pass 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 Article

Using 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 Article

Titanium 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 Article


create 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 Article

Pass 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 Article


Android : 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 Article

ActionBar.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 Article


evalJS 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 Article

Communicate 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 Article

Timeout 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
Browsing latest articles
Browse All 83 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>