简体   繁体   English

检索Blackberry Webworks中的方向更改事件?

[英]Retrieve orientation change event in blackberry webworks?

1) How to retrieve orientation change event in blackberry webworks ? 1)如何在Blackberry Webworks中检索方向更改事件?

2) Can we change orientation programmatically at runtime using JavaScript? 2)我们可以在运行时使用JavaScript以编程方式更改方向吗?

There is a KB here for retrieving orientation change events: http://supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Detect-screen-orientation-changes-using-JavaScript/ta-p/445755 这里有一个KB,用于检索方向更改事件: http : //supportforums.blackberry.com/t5/Web-and-WebWorks-Development/Detect-screen-orientation-changes-using-JavaScript/ta-p/445755

Alternatively, you could listen for window.onresize. 另外,您可以监听window.onresize。

You can not change the orientation programmatically at this time, but you can at compile time through the rim:orientation property: https://developer.blackberry.com/html5/documentation/rim_orientation_element_1594186_11.html 您目前无法以编程方式更改方向,但可以在编译时通过rim:orientation属性: https : //developer.blackberry.com/html5/documentation/rim_orientation_element_1594186_11.html

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

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