Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/80.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在AS3中读取浏览器URL?_Javascript_Html_Flash_Apache Flex_Flex3 - Fatal编程技术网

Javascript 在AS3中读取浏览器URL?

Javascript 在AS3中读取浏览器URL?,javascript,html,flash,apache-flex,flex3,Javascript,Html,Flash,Apache Flex,Flex3,我的应用程序作为父应用程序的IFrame中的选项卡与其他应用程序集成 我想读取浏览器地址栏URL 可以阅读吗 <iframe id="myIFrameID123" src="http://192.168.1.102:8080/om/om.html?ucode=" width="100%" height="600"></iframe> 如果可以读取地址栏URL,那就好了。。。 两个应用程序都在不同的JBO中运行。如果可以读取地址栏URL 是的,可以使用: import f

我的应用程序作为父应用程序的IFrame中的选项卡与其他应用程序集成

我想读取浏览器地址栏URL

可以阅读吗

<iframe id="myIFrameID123" src="http://192.168.1.102:8080/om/om.html?ucode=" width="100%" height="600"></iframe>
如果可以读取地址栏URL,那就好了。。。 两个应用程序都在不同的JBO中运行。

如果可以读取地址栏URL

是的,可以使用:

import flash.external.*;
var curUrl:String =  String( ExternalInterface.call(" function(){ return document.location.href.toString();}"));
如果可能,请读取地址栏URL

是的,可以使用:

import flash.external.*;
var curUrl:String =  String( ExternalInterface.call(" function(){ return document.location.href.toString();}"));

因为您似乎正在使用Flex,所以不需要JavaScript注入。您可以使用访问此信息:

var url:String = BrowserManager.getInstance().url;

该界面提供了许多其他与浏览器交互的可能性,您可以在中阅读。

因为您似乎在使用Flex,所以不需要JavaScript注入。您可以使用访问此信息:

var url:String = BrowserManager.getInstance().url;
此界面提供了许多其他与浏览器交互的可能性,您可以在中阅读