Reputation: 1229
I've been doing quite a bit of scouring of the internet and haven't yet been able to find a solution to this issue. What is happening is that I have a page that renders in a frame depending on the navigation click. This functionality works and has worked for years in all other browser versions prior to IE10, and continues to work flawlessly in Compatibility Mode, but I don't want compatibility mode. Basically when my functions reaches this line of code;
window.parent.frames(1).location='../frmsetPage.aspx?
sFrameScrolling=yes&pageurl=secCreating_Editing/secContent/wfContent.aspx?iPageID=' +
p_iSitePageID + '&helpurl=secHelp/wfHelp.aspx?iBuilderPageID=29'
i get the error of;
SCRIPT5002: Function expected
Of all the research I have been doing the only thing that made any sense is talking about depriciation of the window.parents.frames(1) object, but I can't seem to validate that through anything from Microsoft so I really have no idea.
any help would be greatly appreciated! Thank you very much, NickG
Upvotes: 0
Views: 3159
Reputation: 14645
Try:
window.parent.frames[1].location='../frmsetPage.aspx?
sFrameScrolling=yes&pageurl=secCreating_Editing/secContent/wfContent.aspx?iPageID=' +
p_iSitePageID + '&helpurl=secHelp/wfHelp.aspx?iBuilderPageID=29'
instead of:
window.parent.frames(1).location='../frmsetPage.aspx?
sFrameScrolling=yes&pageurl=secCreating_Editing/secContent/wfContent.aspx?iPageID=' +
p_iSitePageID + '&helpurl=secHelp/wfHelp.aspx?iBuilderPageID=29'
Reason: the frames
collection is accessed like an array using []
instead of ()
.
Good luck!
Upvotes: 2