|
|
||
|
Hello, <script type="text/javascript" src="/js/ui/core.js"></script> The problem is IE seems to load DomAPI each time, so it keeps getting more and more memory everytime an IFRAME is reloaded. Is there a way to create the DomAPI components of the IFRAMEs using the core object located on the page where the pagecontrol is created? We have tried to do a getCore() function, and get the core on each IFRAMEs begining, like this: var core = top.getCore(); but it does not work (causes an error when core.loadUnit is called). Thanks in advance for your help. |
||
|
|
|
|
||
|
Assuming they are all on the same domain, just prefix each call to core by top.core |
||
|
|
|
|
||
|
I know there is no getCore function, this method has been created by us to get the core var from the top, the same you suggest with top.core (the function is on the main window):
function getCore() {
return(core);
}
Anyway, the problem persists. If we do what you say there is an error ("Error: 'core' is undefined") on one of the units we use (listbox) on the IFRAME. Can you help us? Thanks! |
||
|
|
|
|
||
|
Have you tried parent.core? |
||
|
|
|
|
||
|
I think the problem is not the core var, since with this test copyright is showed correctly: |
||
|
|
|
|
||
|
Thanks for the answer Simon! |
||
|
|
|
|
||||
|
Nope. What Simon is saying makes perfect sense.
|
||||
|
|
