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

evalJS Issue

Hi everyone, I am trying to load a javascript function before a webpage is launched. Here is my web view: webview.addEventListener('load', function() { var a_string = webview.myElement; Ti.API.info("I...

View Article


EvalJS in remote webview

Is it possible to evaluate js on a remote webview? Example: How could I load www.google.com and then write to the loaded document with document.write "Hello world" Based on the docs i would assume this...

View Article


How to send a parameter from app.js to html?

Hi all, I have an issue about send parameter from app.js to my local html file. I searched for Q&A and found "evalJS" that I can pass some description to html, but when I using...

View Article

EvalJS does nothing on Android, iPhone works fine.

Today I am working on a news app for my website. The news is received in JSON format and will be used in a Local HTML file with a JS function wich will fill the html page. This JS Function is called...

View Article

Android: EvalJS to get Cookie crash the app on emulator and device

Application type: mobile Titanium SDK: Titanium SDK version: 1.8.1 (01/27/12 17:31 a24502a) Platform & version: Android 2.2 Device: Android emulator / Device Host Operating System: OSX 10.6...

View Article


How to pass array from .js file to webview(html file)?

I want display piechart from report data for that i used google pie chart.for displaying chart i used webview called chart.html<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta...

View Article

evalJS doesn't work with Andriod

I have an app that runs well with iOS, but I can't seem to get the same results with Android. Here is the error I see when trying to load the app: [INFO][TiWebChromeClient.console( 1055)] (main)...

View Article

webview.evalJS seems broken in iOS 5

I've been restructuring my existing code for iOS 5, and one of the biggest issues I found is the fact that evalJS doesn't work in webviews anymore. Did anyone find a solution to this?

View Article


Trouble setting webview cookie with webview.evalJS function and beforeload event

I've been stuck on this problem for the last few days and can't seem to work out what the problem might be. I'm trying to set a cookie before loading a page in a webview on android. Code looks like...

View Article


WebView Titanium object access restriction through evalJS viewing HTML files...

I've got a standard mobile app I'm developing for Android and iOS, uses a webview to display a portion of content from a webpage, pulled from a proxy, and then downloaded to the...

View Article

WebView evalJS "Undefined is not a function".

I am using the webView API to load a remote site, and perform javascript operations on the site. While this works for most functions (getElementById, for instance), it doesn't seem to work for...

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

WebView TiMobile 3.0 evalJS() don't work

Hi, I'm using Titanium 3.1 and Ti SDK 3.0.GA. I'm trying to execute a JS function like document.title but return null: function parseHTML(source, code, callback) { var webview = Ti.UI.createWebView({...

View Article


evalJS() on app pause

Hi guys I want to notify my WebView when the app enters the pause state. First, I add an event listener in my app.js: Ti.App.addEventListener( 'pause', function() { myWebView.evalJS( 'pause()' ); //...

View Article

Asynchronous evalJS() result only on Android

I am trying to get the HTML of a webview and save it. I have, essentially, the following in my app:Ti.API.info("save()"); Ti.API.info(1); var body = view.evalJS("setupSave()"); Ti.API.info(2); if...

View Article


using WebView.evalJS and lost focus (android)

Hy, i will develop a eventhandling for external pages (because external pages dosnt includes the Titanium namespace). The problem is (only tests on android emu/device) when i call my getEvents function...

View Article

App is not working properly during...

Hi guys I've got big problems with behavior of application during downloading/parsing website using WebView. For example EventListener like "click" for Button, imageView or View (It's doesn't matter)...

View Article


WebView load event has wrong HTML

Android emulator 4.0.3. Ti SDK 2.1.4.GA I am working on a OAuth solution and we have a custom callback page that I need to execute an evalJS on to retrieve some application specific configuration. The...

View Article

Trouble escaping backslash with evalJS

Hello I'm having trouble using evalJS to put html into my webview. I currently have mathjax setup to run against the latex math equations. It works if I have in within the html file but does not when...

View Article

WebView

Hello, I am trying to change the innerHTML of a locally loaded HTML file. I create my webview, then pass in the local HTML via the url property, I add a load listener and when the HTML is loaded I am...

View Article
Browsing all 83 articles
Browse latest View live


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