Re: [flexcoders] iFrame not filling canvas
On Friday 02 June 2006 03:56, Angus Johnson wrote: bars when it should size up to 100% width and height. What about if you set the Canvas to be 99% ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] iFrame not filling canvas
Cheers Tom.I ended up changing the html div and iframe styles and it now works. On 02/06/06, Tom Chiverton [EMAIL PROTECTED] wrote:On Friday 02 June 2006 03:56, Angus Johnson wrote: bars when it should size up to 100% width and height.What about if you set the Canvas to be 99% ?--Tom ChivertonThis email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF.A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITYThis email is intended only for the use of the addressee named above and may be confidential or legally privileged.If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents.If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com.We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the Year at the 2005 Growth Company Awards Yahoo! Groups Sponsor ~--Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] iFrame not filling canvas
Hi everyone, I am playing around with the example IFrame code (below) and for the life of me cannot get the content of the IFrame to fill the parent canvas. In both IE and Firefox the display is about an eight of the canvas with scroll bars when it should size up to 100% width and height. I fired up the _javascript_ debugger and can see the height and width being set on the IFrame div so I am thinking it must be flex. Any ideas? Thanks in advance!Angus==IFrameDemo.mxml (application)?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml xmlns=* creationComplete=iFrame.visible=true mx:Script ![CDATA[ import mx.containers.Canvas; import mx.events.*; private function changeSite(e:Event):void { var selectedNode = e.target.selectedItem;iFrame.source = [EMAIL PROTECTED]; } ]] /mx:Script mx:XML id=content format=e4x root category label=Search site label=Google path=http://www.google.com/ site label=Yahoo path= http://www.yahoo.com/ /category category label=Software site label=Macromedia path= http://www.macromedia.com/ site label=Adobe path=http://www.adobe.com/ /category /root /mx:XML mx:HBox width=100% height=100% mx:Panel title=Tree width=200 height=100% mx:Tree id=tree dataProvider={content} width=100% height=100% showRoot=false labelField=@label change=changeSite(event)/ /mx:Panel mx:Panel title=Content width=100% height=100% IFrame id=iFrame source= http://www.google.com width=100% height=100%/ mx:ControlBar mx:CheckBox id=cbVisible label=IFrame Visible selected=true click= iFrame.visible=cbVisible.selected/ /mx:ControlBar /mx:Panel /mx:HBox/mx:Application==IFrame.mxml (component)?xml version= 1.0 encoding=utf-8?mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml resize=callLater(moveIFrame) move=callLater(moveIFrame) mx:Script ![CDATA[ import flash.external.ExternalInterface; import flash.geom.Point; import flash.net.navigateToURL; private var __source: String; private function moveIFrame(): void { var localPt:Point = new Point(0, 0); var globalPt:Point = this.localToGlobal(localPt); ExternalInterface.call(moveIFrame, globalPt.x, globalPt.y, this.width, this.height); } public function set source(source: String): void { if (source) { if (! ExternalInterface.available) { // TODO: determine if this Error is actually needed. The debugger // build gives the error below. Assuming that this error will not show // up in the release build but haven't checked. throw new Error(The ExternalInterface is not available in this container. Internet Explorer ActiveX, Firefox, Mozilla 1.7.5 and greater, or other browsers that support NPRuntime are required.); } __source = source; ExternalInterface.call(loadIFrame, source); } } public function get source(): String { return __source; } override public function set visible(visible: Boolean): void { super.visible=visible; if (visible) { ExternalInterface.call(showIFrame); } else { ExternalInterface.call(hideIFrame); } } ]] /mx:Script ==_javascript_ included in html wrapper...// Functions called from Flex using externalInterface - used for IFrame embedded HTMLfunction moveIFrame(x,y,w,h) { var frameRef=document.getElementById (myFrame); frameRef.style.left=x+'px'; frameRef.style.top=y+'px'; frameRef.width=w+'px'; frameRef.height=h+'px';}function hideIFrame(){ document.getElementById(myFrame).style.visibility=hidden; // document.getElementById(myFrame).innerHTML = iframe src=''frameborder='0' style='position:absolute;background-color:transparent;border:0px;visibility:hidden;'/iframe; } function showIFrame(){ document.getElementById(myFrame).style.visibility=visible;}function loadIFrame(url){// top.frames[myFrame].location.href="" document.getElementById(myFrame).innerHTML = iframe src=''frameborder='0'/iframe;}==using div for iframediv id=myFrame style=position:absolute;background-color:transparent;border:0px;visibility:hidden;/div -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.