简体   繁体   English

iframe中的sencha touch应用程序的问题

[英]Problems with sencha touch application inside an iframe

In my webpage I have to show the contents of another webpage which is done using sencha touch.I am using iframes for this purpose.But the problem is that the select menu in the sencha touch webpage(loaded through iframe) is not coming when viewed in iphone browser.There is an overlay coming,but not the select menu.When the sencha touch app is viewed directly through the browser it is coming fine.So i figure the problem is with the iframe.Any solution to make this work with iframe?.Modifying the sencha touch will not be possible as this is being maintained by a different team and I dont have any control over that code. 在我的网页中,我必须显示使用sencha touch完成的另一个网页的内容。我正在使用iframe用于此目的。但问题是,查看触摸网页中的选择菜单(通过iframe加载)在查看时不会出现在iphone浏览器中。有一个叠加层,但不是选择菜单。当通过浏览器直接查看sencha触摸应用程序时,它会很好。所以我认为问题在于使用iframe.Any解决方案使iframe工作?。修改sencha触摸是不可能的,因为这是由不同的团队维护,我没有任何控制该代码。

To illustrate the problem I have loaded sencha touch kitchen sink app in an iframe.Here is the url. 为了说明问题,我在iframe中加载了sencha touch kitchen sink app.Here是url。 http://pastehtml.com/view/c6mqj67b0.html http://pastehtml.com/view/c6mqj67b0.html

Please open the select menu "Rank" from an iphone browser/simulator and you can see the problem. 请从iPhone浏览器/模拟器打开选择菜单“排名”,您可以看到问题。

Any solutions that can be done at my end to make this work?. 我可以在任何解决方案中完成这项工作吗?

Thanks in advance. 提前致谢。

Sorry @user700284 but overlay iframe not yet works on iOS and android browser; 对不起@ user700284但是叠加iframe还没有在iOS和Android浏览器上运行; only for this moment works on browser desktop. 只有这一刻适用于浏览器桌面。 But you can put iframe not overlay into your Ext.Panel something like this, 但你可以把iframe没有覆盖到你的Ext.Panel这样的东西,

Ext.Panel({
   items: [
    {
       xtype: 'panel',
       html: '<iframe width="560" height="315" src="http://www.sencha.com/products/touch/" frameborder="0" allowfullscreen></iframe>',
       id: 'Idpanel',
       hideOnMaskTap: true
    },
   ]
})

Hope these helps. 希望这些有帮助。 :) :)

使用对象标记而不是iframe,看看是否有所不同。

The iFrame loading a selectfield works perfectly on the iPad (native and mobile safari). 加载选择字段的iFrame可在iPad(本机和移动游戏)上完美运行。 But on the iPhone it gives the same error. 但是在iPhone上却出现了同样的错误。 Any other solutions for this ?? 还有其他解决办法吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM