mattdrinks
Technical User
I have the following code in the onlick event of a button:
When the page is loaded in IE the page loads correctly but the progress bar at the bottom of the screen never completes. If I take out the Highlighted line then the progress bar completes as normal.
Everything seems to work Ok in FF and NS.
This does not stop the functionallity of the page but it does confuse the user, does anyone have any ideas as to why this is happening and how I go about could fixing it.
Thanks for any help,
Matt
Code:
//Create a unique family id
var strFamilyName = window.document.forms[0].CPMainFamilyName.value;
var dteNow = new Date();
var strNumber = new String(dteNow.getTime());
var strFamilyID = new String(strFamilyName.substr(0,5) + strNumber);
window.document.forms[0].CPMainFamilyID.value = strFamilyID;
//Submit the form
window.document.forms[0].submit();
//Show the document just saved in the top (header) frame
var strLocation = new String(parent.window.location);
var str1 = new String(top.window.location.protocol + "//" + parent.window.location.host + "/");
var str2 = new String(strLocation.substring(str1.length, (strLocation.indexOf("nsf")+3)));
var str3 = new String("/webAllFamilies/");
var str5 = new String("?OpenDocument");
strLocation = str1 + str2 + str3 + strFamilyID + str5;
[highlight] parent.fraHeader.document.location = strLocation; [/highlight]
When the page is loaded in IE the page loads correctly but the progress bar at the bottom of the screen never completes. If I take out the Highlighted line then the progress bar completes as normal.
Everything seems to work Ok in FF and NS.
This does not stop the functionallity of the page but it does confuse the user, does anyone have any ideas as to why this is happening and how I go about could fixing it.
Thanks for any help,
Matt