Titanium Studio Webview 不允许我与网站交互

编程入门 行业动态 更新时间:2024-10-28 01:20:57
本文介绍了Titanium Studio Webview 不允许我与网站交互的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送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:关键词]

本文发布于:2023-04-30 09:21:01,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1392036.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不允许   我与   网站   Titanium   Studio

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!