在navigateurl中我如何在flex中给出宽度和高度
您好,当我尝试通过 navigationUrl 方法为窗口提供风度和高度时,它没有打开我的代码var js:String = "window.open(http://[Domain]/Project/pages/sample.jsp, '赢','高度=608,宽度=999');"; var urlReqest:URLRequest = new URLRequest("javascript:" +js + " void(0);"); navigationToURL(urlReqest,"_blank");
它没有打开,如果我给的 url 是正常的 url 意味着最大窗口正在打开。我想像宽度和高度一样打开, 请帮忙。
Hi when i am trying to give windth and height to a window through navigateUrl method its not opening my codevar js:String = "window.open(http://[Domain]/Project/pages/sample.jsp,'win','height=608,width=999');";
var urlReqest:URLRequest = new URLRequest("javascript:" +js + " void(0);");
navigateToURL(urlReqest,"_blank");
its not opnening,and if i give url is normal url means max window is opening.i want to open like width and height,
please help in this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该为此使用外部接口。它允许您从 Flex 调用 Javascript。您可以在此处找到所需的示例:
http://cookbooks.adobe.com/post_Popup_a_window_without_getting_blocked_by_popup_bl -5221.html
You should use the ExternalInterface for that. It allows you to call Javascript from Flex. An example of what you need can be found here:
http://cookbooks.adobe.com/post_Popup_a_window_without_getting_blocked_by_popup_bl-5221.html