PDA

View Full Version : Problem with Extjs calling an invalid URL



richardwyke
26 Mar 2010, 3:12 AM
Hi,

we are experiencing an issue with ExtJS calling an invlaid URL on load https://:/ which causes a secure / unsecure error with IE6 (even though it is https) - IE7+ ignores the issue and so does Firefox, however around 50% of our users are on IE6 so we need to find a solution to the issue.

Our code is as follows:


<html>
<head>
<style>
html,body{
overflow:hidden;
}
</style>
<script>
window.ff = 0;
document.domain = "DOMAIN.com";
</script>
<script src="/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?7.00001408"></script>
<script src="/irj/go/km/docs/documents/Our%20World%20Theme/history/alt/ext-base-debug.js"></script>
<script src="/irj/go/km/docs/documents/Our%20World%20Theme/history/alt/ext-all-debug.js"></script>
</script>
</head>
<body>
<script>
Ext.BLANK_IMAGE_URL ="https://DOMAIN.com/irj/go/km/docs/documents/Our%20World%20Theme/history/s.gif";
Ext.onReady(function() {
Ext.History.init();
function registerHistory(o) {
if (window.ff == 0) {
Ext.History.add(o.dataObject.target);
} else {
window.ff =0;
}
}
EPCM.subscribeEvent("urn:com.sapportals:navigation", "Navigate", registerHistory);
var tokenDelimiter = ':';
Ext.History.on('change', function(token){
if(token){
window.ff=1;
EPCM.doNavigate(token);
}
});
});
</script>
<form id="history-form" style="display:none;">
<input type="hidden" id="x-history-field" />
<iframe id="x-history-frame"></iframe>
</form>
</body>
</html>


This code is being used as part of an SAP Netweaver Enterprise Portal and adds backwards & forwards button functionality (which is not available in the portal as standard) So the EPCM pieces are from the portal javascript which listens to the navigation events and then is picked up by the ExtJS to add to the history trail. When the history event is used again the EPCM navigation function is called to make the portal navigate to the appropriate

The issue is the ExtJS piece is calling the URL https://:/ which causes this error - viewing through httpwatch http://www.extjs.com/deploy/dev/docs/ does the same thing and calls the url https://:/ which is causing a secure/non-secure error.

Any help would be appreciated!