
flex 嵌入网页
其中有段代码如下:<mx:Panelid="loginPanel"x="0"y="0"width="926"height="592"layout="absolute"ti...
其中有段代码如下:
<mx:Panel id="loginPanel" x="0" y="0" width="926" height="592" layout="absolute" title="登陆" fontSize="12" borderColor="#ECF5ED">
<mx:Button x="593" y="516" label="提交" id="btnSubmit" click="loginSrv.send();"/>
<mx:TextInput x="165" y="516" fontSize="12" id="txtname"/>
<mx:TextInput x="402" y="516" id="txtpwd"/>
<mx:Label x="94" y="520" text="姓名:" id="lbname" fontSize="12" fontWeight="bold"/>
<mx:Label x="333" y="520" text="密码:" id="lbpwd" fontSize="12" fontWeight="bold"/>
<local:IFrame visible="true" id="iFrame" source="http://www.google.com" width="906" height="499" x="0"/>
</mx:Panel>
能运行,但有个问题就是当我点文本框要输入文字时,嵌入的网页就不见了,请问是杂回事呢,怎么解决呢 展开
<mx:Panel id="loginPanel" x="0" y="0" width="926" height="592" layout="absolute" title="登陆" fontSize="12" borderColor="#ECF5ED">
<mx:Button x="593" y="516" label="提交" id="btnSubmit" click="loginSrv.send();"/>
<mx:TextInput x="165" y="516" fontSize="12" id="txtname"/>
<mx:TextInput x="402" y="516" id="txtpwd"/>
<mx:Label x="94" y="520" text="姓名:" id="lbname" fontSize="12" fontWeight="bold"/>
<mx:Label x="333" y="520" text="密码:" id="lbpwd" fontSize="12" fontWeight="bold"/>
<local:IFrame visible="true" id="iFrame" source="http://www.google.com" width="906" height="499" x="0"/>
</mx:Panel>
能运行,但有个问题就是当我点文本框要输入文字时,嵌入的网页就不见了,请问是杂回事呢,怎么解决呢 展开
1个回答
展开全部
IFrame应该是你嵌入网页自己写的一个控件吧,这样的话 你的js就是html里面应该还有一些补充的方法。我以前看过flex嵌入网页的一遍教程。估计是你每次点击了网页的时候 就触发了js里面的方法 导致刷新了嵌入的页面。你在flex这里写的local:IFrame 这行 有些属性没定义到吧
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询