I believe Flex uses this iframe to keep track of history
(i.e. lets the user use the browser's 'Back' button) within your Flex
application.
Regards
Ian
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.
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>
<%@ 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="">></script> <noscript> <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#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='' codebase='' 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&lconid=" + 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=''"); document.write(" name='Main.mxml.swf'"); document.write(" />"); document.write("</object>"); </script> <script language='_javascript_' charset='utf-8'> document.write("<br><iframe src='' 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
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 the Yahoo! Terms of Service.

