View Full Version : Problem with Extjs calling an invalid URL

26 Mar 2010, 3:12 AM

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:

window.ff = 0;
document.domain = "DOMAIN.com";
<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>
Ext.BLANK_IMAGE_URL ="https://DOMAIN.com/irj/go/km/docs/documents/Our%20World%20Theme/history/s.gif";
Ext.onReady(function() {
function registerHistory(o) {
if (window.ff == 0) {
} else {
window.ff =0;
EPCM.subscribeEvent("urn:com.sapportals:navigation", "Navigate", registerHistory);
var tokenDelimiter = ':';
Ext.History.on('change', function(token){
<form id="history-form" style="display:none;">
<input type="hidden" id="x-history-field" />
<iframe id="x-history-frame"></iframe>

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!