Titanium Studio Webview 不允许我与网站交互 [英] Titanium Studio Webview not letting me interact with website

查看:25
本文介绍了Titanium Studio Webview 不允许我与网站交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的应用的一部分需要访问外部网站才能回答一些问题.

Part of an app I am working on needs to access an external website to answer a few questions.

需要时,我会打开一个网络视图并将 URL 设置为该站点.页面加载正常,但无法进行交互.无法编辑文本字段且无法单击按钮.为了确保它不是我的网站(从 iOS Safari 正常工作),我将网络视图指向 www.google.com,并且也无法单击那里的搜索按钮.基本上:

When that is needed, I am opening a web view and the URL set to this site. The page loads fine, but there is no way to interact. The textfields cannot be edited and the buttons cannot be clicked. To make sure it was not my website (works from iOS safari fine) I pointed the web view to www.google.com and cannot click the search button there either. Basically:

var webView = Titanium.UI.createWebView({url: 'http://www.google.com'});
win.add(webView);
win.open();

是否有一些技巧可以通过网络视图与网站进行交互?目前我无法使用原生应用和网络服务,需要让应用与现有网站配合使用才能填写此表单.

Is there some trick to being able to interact with the website through a web view? At this time I cannot use a native app and web service and need to get the app working with the existing website to fill out this form.

Titanium Studio 2.1.2 和 iOS6

Titanium Studio 2.1.2 and iOS6

推荐答案

也许你是在把 WebView 放到 Window 之后再放一些 View (Ti.UI.View)?

Maybe are you putting some View (Ti.UI.View) after putting the WebView in the Window?

这篇关于Titanium Studio Webview 不允许我与网站交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆