Hi, Right, iframe is used for History Management purpose... If you don't want extra code to be generated, you can just request swf file...by using your own object/embed tags... <object ...> ...
<param name="movie" value="yourapp.mxml.swf" /> ... <embed src="yourapp.mxml.swf" ..../> </object> -abdul ________________________________ From: Anthony Merryfield [mailto:[EMAIL PROTECTED] Sent: Thursday, April 07, 2005 10:52 PM To: [email protected] Subject: RE: [flexcoders] Additional Code generated in the jsp Hiya, 1. The iframe is what Flex uses to get the HistoryManager to work. It shouldn't mess up your layout as it is set to be 0 pixels high - not sure why MM chose a width of 22 though?! 2. Good question - I guess if you aren't using HistoryManager then there should be a way to stop the code being generated? 3. See 1 :) Tony. -----Original Message----- From: Pushkar Phatak [mailto:[EMAIL PROTECTED] Sent: 07 April 2005 18:16 To: [email protected] Subject: [flexcoders] Additional Code generated in the jsp Hello, I was formatting the the output for an application. The MXML file is embedded in the <body> </body> tags as shown below <body bgcolor="#FFFF33"> <%@ taglib uri="FlexTagLib" prefix="mm" %> <mm:mxml source="Main.mxml"/> </body> The resulting "generated" code at run time is this.. (end of the mail for more questions <table width='100%' height='100%' cellspacing='0' cellpadding='0'><tr><td valign='top'> <script language='javascript' charset='utf-8' src='/samples/flex-internal?action=history_js'></script> <noscript> <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=7,0,14,0' width='100%' height='400' id='Main.mxml.swf' > <param name='flashvars' value='versionChecked=true'> <param name='src' value='Main.mxml.swf'> <embed pluginspage='http://www.macromedia.com/go/getflashplayer' width='100%' height='400' flashvars='versionChecked=true' src='Main.mxml.swf' name='Main.mxml.swf' /> </object> </noscript> <script language='javascript' charset='utf-8'> document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.ca b#version=7,0,14,0' width='100%' height='400'"); document.write("id='Main.mxml.swf'"); document.write(">"); document.write(" <param name='flashvars' value='historyUrl=%2Fsamples%2Fflex%2Dinternal%3Faction%3Dhistory%5Fhtml&lco nid=" + lc_id +"&versionChecked=true'>"); document.write(" <param name='src' value='Main.mxml.swf'>"); document.write(" <embed pluginspage='http://www.macromedia.com/go/getflashplayer' width='100%' height='400'"); document.write(" flashvars='historyUrl=%2Fsamples%2Fflex%2Dinternal%3Faction%3Dhistory%5Fhtml &lconid=" + lc_id +"&versionChecked=true'"); document.write(" src='Main.mxml.swf'"); document.write(" name='Main.mxml.swf'"); document.write(" />"); document.write("</object>"); </script> <script language='javascript' charset='utf-8'> document.write("<br><iframe src='/samples/flex-internal?action=history_html' name='_history' frameborder='0' scrolling='no' width='22' height='0'></iframe></br>"); </script> </td></tr></table> What I dont get is why is there an additioanl iframe generated with the object? (red) The formatting gets killed because of that. I know its probably not a big thing but it would help to know 1. Why the code is being generated 2. Can i stop it from generating, if so how 3. If i cant stop it from generating, is it possible to somehow hide it? Thanks Pushkar This communication together with any attachments transmitted with it ("this E-Mail") is intended only for the use of the addressee and may contain information which is privileged and confidential. If the reader of this E-Mail is not the intended recipient or the employee or agent responsible for delivering it to the intended recipient you are hereby notified that any use, dissemination, forwarding, printing or copying of this E-Mail is strictly prohibited. Addressees should check this E-mail for viruses. The Company makes no representations as regards the absence of viruses in this E-Mail. If you have received this E-Mail in error please notify our IT Service Desk immediately by e-mail at [EMAIL PROTECTED] Please then immediately delete, erase or otherwise destroy this E-Mail and any copies of it. Any opinions expressed in this E-Mail are those of the author and do not necessarily constitute the views of the Company. Nothing in this E-Mail shall bind the Company in any contract or obligation. For the purposes of this E-Mail "the Company" means The Carphone Warehouse Group Plc and/or any of its subsidiaries. Please feel free to visit our website: http:// www.carphonewarehouse.com or http://www.phonehouse.com The Carphone Warehouse Group Plc (Registered in England No. 3253714) 1 Portal Way, London W3 6RS ________________________________ 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] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service <http://docs.yahoo.com/info/terms/> . 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/

