I'm trying to get history management working with our own page template and 
the 2.0.1+hotfix SDK.
All seems well and there are no errors, except when I change tabs for a 
TabNavigator with historyManagementEnabled set to true, I get a new window 
pop up, witch an URL 
like "http://extranet.localdomain/history.htm?&app=128e&fbf6-selectedIndex=1";.

I understand this should have been loaded into the iframe on the page ?
I've also just logged comments with the LiveDocs team over the page at: 
http://livedocs.adobe.com/flex/201/html/historymanager_084_7.html which trys 
to explain how to do it but appears to have errors in, and certainly code 
that doesn't match the templates in the SDK.

Has anyone ever gotten their own template to work with history management, or 
seen this error before ?

My page code uses the popular SWFObject for embeding the SWF, and I've set the 
SWF height to be <100% so I can see the iframe content is being loaded OK.
There are no JavaScript errors, until the popup window appears at which point 
I get an error about "top.getSearch is not a function" which makes sense 
because 'top' will no longer be common to the history.htm (now in new window) 
and the main index page.

All this occurs in IE as well as Firefox.

Here's the page code:
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Halliwells Extranet</title>
<script language="JavaScript" type="text/JavaScript" 
src="history.js"></script>
<script type="text/javascript" src="swfobject/swfobject.js"></script>
<style type="text/css"> 
        /* hide from ie on mac \*/
        html {
                height: 100%;
                overflow: hidden;
        }
        
        #flashcontent {
                height: 90%;
        }
        /* end hide */

        body {
                height: 90%;
                margin: 0;
                padding: 0;
                background-color: #8197A2;
        }

</style>
</head>
<body onLoad="document.getElementById('flashcontent').focus()">
        
        <div id="flashcontent">
                <strong>You need to upgrade your Flash Player to version 9.0.28 
or 
better</strong><br>
                Click <a href="http://adobe.com/go/getflashplayer/";>here</a> or 
contact <a 
href="http://www.halliwells.com/";>Halliwells</a>.
        </div>
        
        <script type="text/javascript">
                // <![CDATA[
                var so = new 
SWFObject("index.swf", "flashcontent", "100%", "90%", "9.0.28", "#8197A2");
                <cfoutput>so.addVariable("token", 
"#res.sessionKey#");</cfoutput>
                so.useExpressInstall('swfobject/expressinstall.swf');
                
so.addVariable("remoteHost",document.location.href.split('/')[2]);
                so.addVariable("remoteProtocol",document.location.protocol);
                so.addVariable("historyUrl","history.htm%3F&lconid="+lc_id);
                so.addParam("scale", "noscale");
                so.write("flashcontent");               
                // ]]>
        </script>
        <iframe name="_history.htm" src="history.htm" height="60" width="62">
        </iframe>
</body>
</html>

-- 
Tom Chiverton
Helping to vitalistically scale 24/7 services

****************************************************

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.

Reply via email to