问题描述
限时送ChatGPT账号..我正在开发的应用的一部分需要访问外部网站才能回答一些问题.
Part of an app I am working on needs to access an external website to answer a few questions.
需要时,我会打开一个网络视图并将 URL 设置为该站点.页面加载正常,但无法进行交互.无法编辑文本字段且无法单击按钮.为了确保它不是我的网站(从 iOS Safari 正常工作),我将网络视图指向 www.google,并且也无法单击那里的搜索按钮.基本上:
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 and cannot click the search button there either. Basically:
var webView = Titanium.UI.createWebView({url: 'http://www.google'});
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屋!
更多推荐
[db:关键词]
发布评论